在我的yolox
机器上安装win10时,我遇到了错误。我升级了pip
和installtools
。这没什么用。
当我使用pip install grpcio==1.18.0
时,我会得到一个错误,而pip install 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
发布于 2022-06-01 13:18:22
升级pip,更新setuptools,然后安装grpcio模块。
pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --no-cache-dir grpcio
版本可以更改。
https://stackoverflow.com/questions/72460699
复制相似问题