Ubuntu编译pycocotools

#首先将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
发布了103 篇原创文章 · 获赞 16 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/sunmingyang1987/article/details/104231847