首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法建立新连接:[WinError 10061]无法建立连接,因为目标计算机主动拒绝了该连接

无法建立新连接:[WinError 10061]无法建立连接,因为目标计算机主动拒绝了该连接
EN

Stack Overflow用户
提问于 2018-06-22 20:58:12
回答 1查看 11.9K关注 0票数 1

当通过pip安装任何东西时,我收到此错误,无法建立新连接: WinError 10061无法建立连接,因为目标计算机主动拒绝连接。我是通过pip命令安装django的,也就是pip install django,我得到了这个错误:

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 0x04135910>: Failed to establish a new connection: [WinError 10061] 
No connection could be made because the target machine actively refused 
it',))': /simple/django/
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 0x04135850>: Failed to establish a new connection: [WinError 10061] 
No connection could be made because the target machine actively refused 
it',))': /simple/django/
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 0x04135930>: Failed to establish a new connection: [WinError 10061] 
No connection could be made because the target machine actively refused 
it',))': /simple/django/
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 0x04135770>: Failed to establish a new connection: [WinError 10061] 
No connection could be made because the target machine actively refused 
it',))': /simple/django/
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 0x04135870>: Failed to establish a new connection: [WinError 10061] 
No connection could be made because the target machine actively refused 
it',))': /simple/django/
Could not find a version that satisfies the requirement django (from 
versions: )
No matching distribution found for django
EN

回答 1

Stack Overflow用户

发布于 2019-01-02 17:26:48

如果您使用的是windows,只需以管理员身份运行cmd即可。这可能会解决你的问题。

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50988477

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档