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

今天在使用pip install安装requests包时总是出现:
python使用pip安装包出现错误:[WinError 10061] 由于目标计算机积极拒绝,无法连接
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000019035F546A0>: 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(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000019035F540F0>: 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(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000019035F54FD0>: 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(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000019035F72080>: 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(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000019035F722B0>: 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] 由于目标计算机积极拒绝,无法连接