无法使用PIP安装grpcio == 1.18.0安装GRPCIO

发布于 2025-02-03 14:05:03 字数 1832 浏览 3 评论 0原文

在我的Win10机器上安装yolox时,我会遇到错误。我已经升级了pipinstallTools。它无济于事。

当我使用pip install grpcio == 1.18.0时,我会有错误, PIP安装grpcio运行良好。

但是似乎onnx == 1.8.1需要以1.18.0验证的版本?我不知道...

During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\Users\Knight\AppData\Local\Temp\pip-install-ac7tlzg1\grpcio_bb43f1f19b054e8f975f746e324f1077\src\python\grpcio\commands.py", line 272, in build_extensions
      build_ext.build_ext.build_extensions(self)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
      objects = self.compiler.compile(sources,
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 407, in compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

请注意,此错误起源于子过程,并且可能不是PIP的问题。

ERROR: Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build grpcio

I am getting errors while installing yolox on my win10 machine. I have upgraded pip and installtools. It does not help.

When I use pip install grpcio==1.18.0 I get an error,
while pip install grpcio works well.

But it seems onnx==1.8.1 needs the verified version at 1.18.0? I don't know...

During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "C:\Users\Knight\AppData\Local\Temp\pip-install-ac7tlzg1\grpcio_bb43f1f19b054e8f975f746e324f1077\src\python\grpcio\commands.py", line 272, in build_extensions
      build_ext.build_ext.build_extensions(self)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
      _build_ext.build_extension(self, ext)
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
      objects = self.compiler.compile(sources,
    File "D:\Anaconda3\envs\Yolox_py3.9_offical\lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 407, in compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

Note that this error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build grpcio

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2025-02-10 14:05:03

升级PIP,更新SetUptools,然后安装GRPCIO模块。

pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --no-cache-dir grpcio

可以更改版本。

Upgrade pip, update setuptools and then install the grpcio module.

pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --no-cache-dir grpcio

The version can be changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文