linux安装:
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
window安装:
安装首先需要安装visual studio
在git中安装pycocotools,安装在python环境中的d:\python38\Lib\site-packages下
git clone https://github.com/pdollar/coco.git
cd coco/PythonAPI
python setup.py build_ext install
安装过程中可能遇到以下问题
问题:error: command 'D:\VS\IDE\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe
解决:打开文件夹下的setup文件,注释掉下列这行