pycocotools库安装
在进行 efficientdet的复现时发现需要使用到pycocotools的库,但是pip、conda、pip3安装时,总出现错误。
即以下错误
failed with exit status 2
ERROR: Failed building wheel for pycocotools
发现pycocotools只适用于Linux系统,在github上发现了另外一个人所实现的库
可以在win10上成功安装
pip install
git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting
git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Cloning https://github.com/philferriere/cocoapi.git to
c:\users\yan\appdata\local\temp\pip-req-build-f2n3myri Running
command git clone -q https://github.com/philferriere/cocoapi.git
‘C:\Users\yan\AppData\Local\Temp\pip-req-build-f2n3myri’ Building
wheels for collected packages: pycocotools Building wheel for
pycocotools (setup.py) … done Created wheel for pycocotools:
filename=pycocotools-2.0-cp36-cp36m-win_amd64.whl size=82889
sha256=d8b26364c8a3d55263d2d3b738c0cf2a22f0b955f47ac7b47be128060837a3c3
Stored in directory:
C:\Users\yan\AppData\Local\Temp\pip-ephem-wheel-cache-nv7omig1\wheels\b9\4e\44\7b76fc7329ff952a523b8b7dfa674a02b71ae92de8f4eb96a6
Successfully built pycocotools Installing collected packages:
pycocotools Successfully installed pycocotools-2.0