1. 问题描述
如题,在Windows 10 x64主机的Python Anaconda虚拟环境中安装pycocotools包时报错。安装命令为:
pip install pycocotools
执行后报错,如下所示:
Collecting pycocotools
Using cached https://files.pythonhosted.org/packages/96/84/9a07b1095fd8555ba3f3d519517c8743c2554a245f9476e5e39869f948d2/pycocotools-2.0.0.tar.gz
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\test\Anaconda3\envs\cu100_py37_torch120\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\test\\AppData\\Local\\Temp\\pip-install-09qyqdlo\\pycocotools\\setup.py'"'"'; __file__='"'"'C:\\Users\\test\\AppData\\Local\\Temp\\pip-install-09qyqdlo\\pycocotools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\test\AppData\Local\Temp\pip-wheel-fx81fe0f' --python-tag cp37
cwd: C:\Users\test\AppData\Local\Temp\pip-install-09qyqdlo\pycocotools\
Complete output