当前位置: 代码迷 >> 综合 >> 安装pycocotools,Failed building wheel for pycocotools
  详细解决方案

安装pycocotools,Failed building wheel for pycocotools

热度:23   发布时间:2023-12-18 15:56:44.0

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

  相关解决方案