之前写过一篇在Windows10下安装COCOAPI,点击进入,但是那个方式一比较麻烦,也没有介绍清楚,其实在编译过程中是需要安装VC++2015的,这里提供一个VC++2015的安装包,下载后,点击默认安装即可。
地址:https://pan.baidu.com/s/1_Vg0O3vQFbhslu8gIuhu2w
提取码:zn65
方式二那个只有python36版本的,对其它版本不太友好
所以这里想再写一遍
本文还需要git,如果没有安装的话,参考我的博文点击查看
在以上准备工作结束后,直接在命令行中输入:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
如果出现以下错误:
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
则 pip install Cython ,再次运行以上命令即可
测试安装: