python装库报错解决

2022/1/14 22:06:08

本文主要是介绍python装库报错解决,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

python装库报错解决

输入的代码:

pip install HSI -i https://pypi.douban.com/simple

报错内容:

 Could not fetch URL https://pypi.douban.com/simple/hsi/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.douban.com', port=443): Max retries exceeded with url: /simple/hsi/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violatio
n of protocol (_ssl.c:852)'),)) - skipping

解决办法:后面加上

--trusted-host pypi.xxx.com

例如:

pip install HSI -i https://pypi.douban.com/simple --trusted-host pypi.xxx.com


这篇关于python装库报错解决的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程