一、安装超时
开始使用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
网友评论