Ubuntu16.04 安装pycocotools

由于在一个开源项目中有一个pycocotools 的模块,实则它是一个API接口。最后在git命令中使用,方法来自于https://github.com/philferriere/cocoapi

pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
或者
sudo -H python3 -m pip install  git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

简单粗暴的一句话,由于跟机器的网速、git的资源有关系,没有进度条,耐心等待Successfully 即可。
其中sudo -H python3 -m pip install 依赖包名称: 不影响py2的情况下,在py3安装。
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/NcepuKZH/article/details/89388404