无法使用PIP安装grpcio == 1.18.0安装GRPCIO
在我的Win10机器上安装yolox
时,我会遇到错误。我已经升级了pip
和installTools
。它无济于事。
当我使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
升级PIP,更新SetUptools,然后安装GRPCIO模块。
可以更改版本。
Upgrade pip, update setuptools and then install the grpcio module.
The version can be changed.