Python - ConnectTimeoutError

时间:2018-05-29 14:35:48

标签: python git pip

我的计算机上有python,但每当我尝试安装任何使用pip的内容时,都会出现以下错误。我该如何解决这个问题。每当我尝试git clone时,我都会遇到连接问题。

版本9.0.3

   Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\a1001813>pip install sphinx sphinx-autobuild
Collecting sphinx
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection
.VerifiedHTTPSConnection object at 0x0000000003AB2B38>, 'Connection to pypi.pyth
on.org timed out. (connect timeout=15)')': /simple/sphinx/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection
.VerifiedHTTPSConnection object at 0x0000000003AB28D0>, 'Connection to pypi.pyth
on.org timed out. (connect timeout=15)')': /simple/sphinx/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection
.VerifiedHTTPSConnection object at 0x0000000003AB2C88>, 'Connection to pypi.pyth
on.org timed out. (connect timeout=15)')': /simple/sphinx/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection
.VerifiedHTTPSConnection object at 0x0000000003AB2E48>, 'Connection to pypi.pyth
on.org timed out. (connect timeout=15)')': /simple/sphinx/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))
 after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection
.VerifiedHTTPSConnection object at 0x0000000003AB2F60>, 'Connection to pypi.pyth
on.org timed out. (connect timeout=15)')': /simple/sphinx/
  Could not find a version that satisfies the requirement sphinx (from versions:
 )
No matching distribution found for sphinx

C:\Users\a1001813>

0 个答案:

没有答案