D:\resourcemanage>pip --default-timeout=100 install pygame
Collecting pygame
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection
broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0
x00000217FD7FCCC0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后
没有正确答复或连接的主机没有反应,连接尝试失败。',)': /packages/79/b0/2fec9a5d9151c8f8e20721349950
c1bde2d02b331c19e178c3d76876a218/pygame-1.9.6-cp36-cp36m-win_amd64.whl
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection
broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0
x00000217FD8251D0>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后
没有正确答复或连接的主机没有反应,连接尝试失败。',)': /packages/79/b0/2fec9a5d9151c8f8e20721349950
c1bde2d02b331c19e178c3d76876a218/pygame-1.9.6-cp36-cp36m-win_amd64.whl
老师,网络没问题,还是无法安装
2020-04-13 13:56:04
同学你好:
建议同学换一下国内的镜像源。
先升级一下pip 命令 python -m pip install --upgrade pip
然后
例如:pip install pygame -i xxxxxxxxxxxxxxxxxxx
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
2020-04-13 19:43:51
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_internal\download.py", line 586, i
n written_chunks
for chunk in chunks:
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_internal\utils\ui.py", line 159, i
n iter
for x in it:
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_internal\download.py", line 575, i
n resp_read
decode_content=False):
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_vendor\urllib3\response.py", line
436, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_vendor\urllib3\response.py", line
401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "C:\Users\123456\AppData\Local\Programs\Python\Python36\lib\contextlib.py", line 99, in __e
xit__
self.gen.throw(type, value, traceback)
File "d:\airplane\lib\site-packages\pip-10.0.1-py3.6.egg\pip\_vendor\urllib3\response.py", line
307, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org'
, port=443): Read timed out.
You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
老师,还是报错,是我的pip没更新成功吗?
2020-04-14 11:22:50
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星