鱼C论坛

 找回密码
 立即注册
查看: 1721|回复: 2

[已解决]安装easygui

[复制链接]
发表于 2020-3-28 09:19:03 | 显示全部楼层 |阅读模式
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.



就酱。。。然后。。。不行了
最佳答案
2020-3-28 09:19:04
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
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 09:19:04 | 显示全部楼层    本楼为最佳答案   
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
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-3-28 10:12:25 | 显示全部楼层
pip install easygui --timeout 10000
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-12 03:55

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表