pycocotools源码地址:https://github.com/philferriere/cocoapi
推荐用这个,因为网上的好多源码都试过,这个是我用过的好使的,ubuntu源码地址:https://github.com/waleedka/coco,ubuntu可以直接用,就不多说了,windows出现的问题一般都是Unable to find vcvarsall.bat或者Microsoft Visual C++ 14.0 is required,其实都是一个问题,没有Visual C++ 编译环境。
解决办法就是安装编译环境(废话),根据各种教程安装visual build tools 2015,安装完后也是不好使,然后visual studio又太大了,minGW也不好使,最后尝试了VisualCppBuildTools_Full.exe,在网上都能找到,安装后就顺利编译通过了。