安装pycocotools,Failed building wheel for pycocotools

pip安装pycocotools出错如下,

Command "d:\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\wf\\AppData\\Local\\Temp\\pip-install-p8ep1dmz\\pycocotools\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\wf\AppData\Local\Temp\pip-record-o20bb0lt\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\wf\AppData\Local\Temp\pip-install-p8ep1dmz\pycocotools\

解决方法:

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

猜你喜欢

转载自blog.csdn.net/rookie_wei/article/details/90065777