#首先将coco工具下载下来
git clone https://github.com/pdollar/coco.git
#切换到Python 对应的API文件夹
cd coco/PythonAPI
#安装方式有两种:
#第一种: install pycocotools locally
python setup.py build_ext --inplace
#第二种: install pycocotools to the Python site-packages
python setup.py build_ext install
Ubuntu编译pycocotools
最新推荐文章于 2023-10-26 11:42:44 发布