方法一
下载whl文件,然后pip一下就可以啦
各版本pycocotools.whl文件
方法二
- 在 GIT官网上下载 GIT
- 将GIT添加到PATH,控制面板:>系统与安全=>系统=>高级系统设置=>环境变量=>path 编辑=>新建
-
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
方法一
下载whl文件,然后pip一下就可以啦
各版本pycocotools.whl文件
方法二
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
概要:由于缺少pycocotools包引发的错误,而pycocotools包需要cython和C编译器,所以在安装cython之前需要先安装Cython。解决办法:安装cython pip install -U cython Linux安装pycocotools pip install "git+https://github.com/philferriere/cocoapi.git#egg=pycocotools&subdirectory=PythonAPI" Wind
在使用tensorflow object-detection api 中出现了这个问题我以为是cocoAPI没装好,在tensorflow/models/research下有一个pycocotools,程序会优先导入这个包,但是这个包里的_mask并不是python程序,把这个包删了。在 models/research下重新安装,命令为git clone https://github.com/cocodataset/cocoapi.gitcd cocoapi/PythonAPImakemake in
记录 | 报错:No module named 'PIL'
记录 | 报错:No module named 'google'
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M