官方链接:
https://github.com/cocodataset/cocoapi/tree/master/PythonAPI
cd cocoapi/PythonAPI/
注意Python版本不要过高Python3.8及以下;
安装步骤:
python setup.py build_ext --inplace
python setup.py build_ext install
其他方法:
pip install pycocotools_Windows
或者直接下载离线版: