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
标签:douban,python,pypi,simple,报错,https,com,装库 来源: https://www.cnblogs.com/Rubyen2333/p/15804977.html