Could not fetch URL https://pypi.org/simple/pytest-html/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pytest-html/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
百度搜索解决方案如下:
可以通关更管源的方式解决:
1)http://mirrors.aliyun.com/pypi/simple/ 阿里云 2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学 3)http://pypi.douban.com/simple/ 豆瓣 4)https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学 5)http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学
然后对requirements.txt中的包进行安装
pip3 install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
|