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