有关安装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
即可安装成功
posted @ 2020-12-06 17:20  _八级大狂风  阅读(213)  评论(0编辑  收藏  举报