方法一
下载whl文件,然后pip一下就可以啦
​​​各版本pycocotools.whl文件​

方法二

  1. 在 GIT官网上下载 ​​GIT​
  2. 将GIT添加到PATH,控制面板:>系统与安全=>系统=>高级系统设置=>环境变量=>path 编辑=>新建
  3. ​pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI​