zoukankan      html  css  js  c++  java
  • 使用pip命令可能遇到的报错

    1、使用pip安装包失败,报错:
    Could not fetch URL https://pypi.python.org/simple/mitmproxy/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645) - skipping
      Could not find a version that satisfies the requirement mitmproxy (from versions: )
    No matching distribution found for mitmproxy
    可以通过国内镜像安装:pip install 包名-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
    --trusted-host pypi.douban.com 这是为了获得ssl证书的认证
     
    2、使用pip安装包失败,报错 error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
     
    3、python3.7版本,pip版本太老,pip升级命令:
    pip3 install --upgrade pip --trusted-host pypi.org --trusted-host files.pythonhosted.org
     
    4、使用pip install XX出现错误consider using the '--user' option or check the permissions
    纠正方法:pip install --user XX

  • 相关阅读:
    认证功能装饰器
    装饰器升级版
    装饰器
    闭包函数
    名称空间与作用域
    嵌套函数
    函数对象
    命名关键字参数
    函数单数的使用
    函数的定义与调用
  • 原文地址:https://www.cnblogs.com/ninanie/p/11340245.html
Copyright © 2011-2022 走看看