python使用pip安装包出现错误:[WinError 10061] 由于目标计算机积极拒绝,无法连接

今天在使用pip install安装requests包时总是出现:
python使用pip安装包出现错误:[WinError 10061] 由于目标计算机积极拒绝,无法连接_第1张图片
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/requests/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/requests/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/requests/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/requests/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。’))’: /simple/requests/
Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests

错误,网络设置里改了自动配置代理也不行,无论安装什么包都是这个提示。
后来发现是内网无法安装库,连了无线,一切OK。
python使用pip安装包出现错误:[WinError 10061] 由于目标计算机积极拒绝,无法连接_第2张图片

你可能感兴趣的:(python)