有关安装pycocotools的办法

1,首先需要安装Visual C++ 2015构建工具,地址https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-

68a90f98b238/visualcppbuildtools_full.exe,全程默认安装。

再用pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

或者本地安装在下载好文件后在文件下打开PS

# install pycocotools locally
python setup.py build_ext --inplace
 
# install pycocotools to the Python site-packages
python setup.py build_ext install
即可安装成功
原文地址:https://www.cnblogs.com/kelvin-liu/p/14093371.html