使用pip安装任何软件包时出现WinError 10013

时间:2018-10-05 08:21:09

标签: python pip

我试图在Windows的python内核上安装软件包,每次输入pip install pacakgename时,都会出现此错误:

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016FFD3F9748>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions',)': /simple/name/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016FFD3F9550>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions',)': /simple/name/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016FFD3F9588>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions',)': /simple/name/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016FFD3F94A8>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions',)': /simple/name/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000016FFD3F9390>: Failed to establish a new connection: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions',)': /simple/name/
  Could not find a version that satisfies the requirement name (from versions: )
No matching distribution found for name

即使是无效名称,我也会收到此错误。我尝试使用代理,但不起作用。

谢谢

3 个答案:

答案 0 :(得分:1)

  1. 禁用任何代理或VPN(如果您使用的是
  2. 通过防火墙允许访问pip / python

答案 1 :(得分:0)

此问题与您的操作系统无关。这是因为您的安全软件。我拥有卡巴斯基的全面安全保护,而这个麻烦对我来说是发生了。
要解决此问题,请尝试从设置部分禁用防病毒软件或仅禁用应用程序防火墙。
您也可以通过在设置菜单中进行搜索来访问点子。
关于代理,您可以使用也可以不使用。它们在安装软件包中并不重要。 祝你好运

答案 2 :(得分:0)

如果您使用诸如Simplewall之类的任何第三方防火墙,请确保python.exe拥有访问Internet的权限。我在卸载Simplewall后遇到了相同的问题,因为它启用了过滤器,因此我必须再次安装它,然后它才能工作