每当我尝试安装新的python包时都会出错

时间:2018-05-22 18:35:12

标签: python windows python-3.x

当我在cmd上运行pip install selenium时会出现此错误

C:\Users\Shaharyar Parekh\AppData\Local\Programs\Python\Python36-32\Scripts>pip install selenium
Collecting selenium
  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 0x06455C30>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/selenium/
  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 0x06455DF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/selenium/
  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 0x06455CF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/selenium/
  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 0x06455BF0>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/selenium/
  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 0x06455D70>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/selenium/
  Could not find a version that satisfies the requirement selenium (from versions: )
No matching distribution found for selenium

我尝试多次重新安装python解释器,但它没有解决问题

1 个答案:

答案 0 :(得分:1)

我的代理设置中输入了错误的代理地址和端口。这就是为什么这个错误不断弹出