window10解决ERROR: Failed building wheel for pycocotools

本文是 针对windows使用Pycocotools 编译出错笔记。

Pycocotools

Pycocotools 的含义是python api tools of coco…,而coco是一个标注过的图片数据集,可用以目标检测、分割和描述生成等。Yep, it’s all about MS COCO API…

问题描述

在pip install Pycocotools时会遇到错误:ERROR: Failed building wheel for pycocotools
window10解决ERROR: Failed building wheel for pycocotools

解决方法

pip install

在网上搜了很多,都是直接pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
但是在安装的时候仍然不行。只能采用先下载后编译的方法

离线方法

在github上下载https://github.com/cocodataset/cocoapi;
cd cd coco/PythonAPI;
在python环境下python setup.py build_ext --inplace
再执行python setup.py build_ext install
大功告成!!!!