1.windows下安装pycocotools包
在学习Pytorch的Tutorials时, TorchVision Object Detection Finetuning Tutorial这一节需要安装pycocotools。
2.报错:
ERROR: Command errored out with exit status 128: git clone -q https://github.com/gautamchitnis/cocoapi.git 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-req-build-1u75b_em' Check the logs for full command output.
3.解决方案:
在官网查到cocoapi for python >= 3.6 that pip-installs on Windows.
4.安装命令:
pip install pycocotools-windows
解决!!!!