pipenv install 包名 报错问题
== 使用pipenv install requests --dev报异常,特记录解决办法==
1、报错截图
下面 报错代码
。
Installing requests...
Error: An error occurred while installing requests!
Error text: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyErro
r('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyErro
r('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyErro
r('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyErro
r('Cannot connect to proxy.', timeout('_ssl.c:1106: The handshake operation timed out'))': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyErro
r('Cannot connect to proxy.', timeout('_ssl.c:1106: 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
Installation Failed
2、报错原因
是因为开了代理,导致找不到清华源