pip don't work when installing (keep connecting back)
两天来我一直有一个问题,关于pip给出了一个我找不到答案的错误。
1 2 3 | Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by. 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x036CE750>, 'Connection to 192.168.0.8 timed out. (connect timeout=15)')': /simple/six/ |
在安装软件包时,它似乎连接回了我的机器(192.168.0.8),如果有人能告诉我如何修复它,以及为什么会发生这种情况,那么我会感激的。
编辑:
输出此错误:
Looking up"https://pypi.python.org/pypi/pip/json" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
There was an error checking the latest version of pip
Traceback (most recent call last):
File"c:\users\musa\appdata\local\programs\python\python35-32\lib\site-packages\pip_vendor
equests\packages\urllib3\connection.py", line 137, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File"c:\users\musa\appdata\local\programs\python\python35-32\lib\site-packages\pip_vendor
equests\packages\urllib3\util\connection.py", line 91, in create_connection
raise err
File"c:\users\musa\appdata\local\programs\python\python35-32\lib\site-packages\pip_vendor
equests\packages\urllib3\util\connection.py", line 81, in create_connection
sock.connect(sa)
socket.timeout: timed out
FLY-8-缺乏
根据你提供的描述很难说。但是,我建议您从https://www.anaconda.com/download安装Python。/
这与库和包管理器捆绑在一起,它也与PIP一起,因此您不必单独安装它。我希望在安装PIP时会有一些小错误,但是现在通过安装Python,我想您的问题会得到解决。