|
1鱼币
Microsoft Windows [版本 10.0.18362.720]
(c) 2019 Microsoft Corporation。保留所有权利。
C:\Users\83489>pip install easygui
You are using pip version 7.0.3+xy.11, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Requirement already satisfied (use --upgrade to upgrade): easygui in c:\python27\lib\site-packages
C:\Users\83489>python -m pip install --upgrade pip
You are using pip version 7.0.3+xy.11, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Collecting pip
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (1.4MB)
2% |▊ | 32kB 2.8kB/s eta 0:08:15Exception:
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\pip\basecommand.py", line 223, in main
status = self.run(options, args)
File "C:\Python27\lib\site-packages\pip\commands\install.py", line 292, in run
wb.build(autobuilding=True)
File "C:\Python27\lib\site-packages\pip\wheel.py", line 705, in build
self.requirement_set.prepare_files(self.finder)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 317, in prepare_files
functools.partial(self._prepare_file, finder))
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 304, in _walk_req_to_install
more_reqs = handler(req_to_install)
File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 469, in _prepare_file
session=self.session)
File "C:\Python27\lib\site-packages\pip\download.py", line 825, in unpack_url
session,
File "C:\Python27\lib\site-packages\pip\download.py", line 673, in unpack_http_url
from_path, content_type = _download_http_url(link, session, temp_dir)
File "C:\Python27\lib\site-packages\pip\download.py", line 886, in _download_http_url
_download_url(resp, link, content_file)
File "C:\Python27\lib\site-packages\pip\download.py", line 621, in _download_url
for chunk in progress_indicator(resp_read(4096), 4096):
File "C:\Python27\lib\site-packages\pip\utils\ui.py", line 133, in iter
for x in it:
File "C:\Python27\lib\site-packages\pip\download.py", line 586, in resp_read
decode_content=False):
File "C:\Python27\lib\site-packages\urllib3\response.py", line 307, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "C:\Python27\lib\site-packages\urllib3\response.py", line 267, in read
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
就酱。。。然后。。。不行了
HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out,访问files.pythonhosted.org 超时,网络问题,用国内镜像安装: pip install easygui -i http://mirrors.aliyun.com/pypi/simple/
这是一次性的方法,还可以永久性的改动: https://fishc.com.cn/thread-143635-1-1.html
|
最佳答案
查看完整内容
HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out,访问files.pythonhosted.org 超时,网络问题,用国内镜像安装:
这是一次性的方法,还可以永久性的改动:https://fishc.com.cn/thread-143635-1-1.html
|