zoukankan      html  css  js  c++  java
  • ImportError: No module named 'pycocotools'

    错误原因很简单,就是缺少了pycocotools这个包,首先你需要pip install pycocotools,看少了什么包没安装,我这里少了Cython

    于是我又安装了Cython,然后再安装pycocotools,就OK了

    上面是在linux上面比较简单,下面看window上面:

    看这个博客https://blog.csdn.net/heiheiya/article/details/81128749

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

    以下安装说明是错误的,我留这里只是为了记录我寻找vc14的安装过程:

    安装完Cython之后,直接安装pip install pycocotools可能会报:

    building 'pycocotools._mask' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
    C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

     

    说明少vc14,这是python3.5和3.6会发生的事情,感兴趣的可以先去https://wiki.python.org/moin/WindowsCompilers看看

    不感兴趣的直接下载https://visualstudio.microsoft.com/zh-hans/downloads/

  • 相关阅读:
    4-1 R语言函数 lapply
    3-6 向量化操作
    3-5 处理缺失值
    3-4 列表的子集
    3-3 数据框的子集
    3-2 矩阵的子集
    bootstrap 模式对话框
    手机端 超链接 识别电话号码
    jQuery设置和获取HTML、文本和值
    TP 框架 ajax[利用异步提交表单]
  • 原文地址:https://www.cnblogs.com/tangmiao/p/9039842.html
Copyright © 2011-2022 走看看