去Visual Studio: 面向软件开发人员和 Teams 的 IDE 和代码编辑器下载visual studio,并安装
方法1:
1.下载源码
https://github.com/ppwwyyxx/cocoapi
2.
cd *\cocoapi-master\PythonAPI
3.
python setup.py build_ext --inplace
方法2(适用于windows):
git clone https://github.com/philferriere/cocoapi
通过管理员权限打开cmd
cd cocoapi/PythonAPI
python setup.py build_ext install
查看是否安装完成
pip list | findstr pycocotools