美文网首页
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遇到的问题

    一、安装超时 开始使用pip install -U pytest安装,安装超时 解决自定义超时时间:pip --d...

  • pip更新失败

    centos安装pip失败 遇到的问题:在安装pip时,报错 报错如下 安装get-pip.py:

  • 更新pip

    在使用 pip更新python 包的时候总遇到问题,经查,是需要先更新 pip。但是在 更新 pip,试过pip ...

  • pip 升级所遇到的问题

    pip的原有版本是9.0.1,最近发现pip可以升级了,想到pip升级到10以上用了下面各种方法,都不管用,如下:...

  • pip遇到的问题记录

    1、用pip install安装源码时,遇到报错: pip install fails with UnicodeD...

  • 解决ModuleNotFoundError: No module

    Python学习遇到小问题:ModuleNotFoundError: No module named ‘pip’,...

  • pip安装模块

    1、用pip安装遇到问题,因为前段时间安装的loadrunner中也有pip,所以用python -m pip i...

  • python的坑

    pip3更新的时候,可能会遇到提示main不能import的问题。 pip3 install numpyTrace...

  • httprunner 实操中遇到的问题

    学习Httprunner 跑脚本过程中遇到的问题: 1.pip安装httprunner时遇到的证书问题:Cou...

  • pip conda换清华源

    可能遇到的问题 pip install xxx Could not fetch URL https://pypi....

网友评论

      本文标题:pip遇到的问题

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