1.   输入:python setup.py build_ext --inplace

2. 一般情况下都会报错,

      Windows  pycocotools  安装

3. 已有人解决,解决方案:

   pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

  注意:这里无需按照作者必须安装vs2015,博主的vs版本是2017,也是可以的。

4. 博主在执行3时,出现找不到pip所对应的的路径,可是博主就是在pip路径中执行的,找了网上好多,也没有解决的,于是,博主只能将GitHub中的demo手动下载,

  网址:https://github.com/philferriere/cocoapi

5. 如果是出现第4步的情况下,手动解压文件夹,然后再在解压的文件夹下执行 python setup.py build_ext --inplace

6. 安装cython  pip install cython

 

相关文章:

  • 2022-12-23
  • 2021-08-24
  • 2021-08-22
  • 2021-07-16
  • 2021-10-19
  • 2021-12-04
  • 2021-11-03
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-07-17
  • 2022-12-23
  • 2021-07-28
相关资源
相似解决方案