git clone https://github.com/pdollar/coco.git
cd coco/PythonAPI
python3 setup.py build_ext --inplace
python3 setup.py build_ext install
进入python3命令行就可以直接导入了,执行import pycocotools和from pycocotools.coco import COCO命令不报错说明已经安装成功了
git clone https://github.com/pdollar/coco.git
cd coco/PythonAPI
python3 setup.py build_ext --inplace
python3 setup.py build_ext install
进入python3命令行就可以直接导入了,执行import pycocotools和from pycocotools.coco import COCO命令不报错说明已经安装成功了