美文网首页
pip遇到的问题

pip遇到的问题

作者: 猪儿打滚 | 来源:发表于2020-06-12 16:30 被阅读0次

    一、安装超时

    开始使用pip install -U pytest安装,安装超时

    • 解决
      自定义超时时间:pip --default -timeout=1000 install -U pytest

    二、使用pip安装pytest-html等失败

      Could not find a version that satisfies the requirement pytest-html (from versions: )
    No matching distribution found for pytest-html
    
    • 解决
      使用easy_insatll安装
    easy_install pytest-html
    

    三、安装jsonpath-rw时失败

      Could not fetch URL https://pypi.douban.com/simple/jsonpath-rw/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.douban.com', port=443): Max retries
     exceeded with url: /simple/jsonpath-rw/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)'),)) - skipping
    
    • 解决:
      pip install jsonpath_rw --index-url http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
      或者先升级pip:
      python -m pip install --upgrade pip --index-url http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

    相关文章

      网友评论

          本文标题:pip遇到的问题

          本文链接:https://www.haomeiwen.com/subject/tfxcahtx.html