pip安装库报错

机缘

今天安装requests库一直报错,试了很多办法,升级pip,安装豆瓣搬等等,WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1034: The handshake operation timed out’))’: /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1034: The handshake operation timed out’))’: /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1034: The handshake operation timed out’))’: /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1034: The handshake operation timed out’))’: /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, timeout(’_ssl.c:1034: The handshake operation timed out’))’: /simple/requests/
ERROR: Could not find a version that satisfies the requirement requests (from versions: none)
ERROR: No matching distribution found for requests

C:\Users\admin>python -m pip install --upgrade pip
—](https://img-blog.csdnimg.cn/b67c7556f71340caa7ef7f79e1115137.png)

收获

后来发现是pip源连接证书验证失败
调整为国内的源
pip install boost -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com

你可能感兴趣的:(python,list)