错误:

解决方案:

 使用镜像:pip install xxxx -i https://pypi.douban.com/simple 
如:pip3 install --upgrade tensorflow -i https://pypi.douban.com/simple 
 
错误信息:
 Traceback (most recent call last):
  File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py

", line 226, in _error_catcher
    yield
  File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py

", line 301, in read
    data = self._fp.read(amt)
  File "d:\programs\python35\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py

", line 49, in read
    data = self.__fp.read(amt)
  File "d:\programs\python35\lib\http\client.py

", line 448, in read
    n = self.readinto(b)
  File "d:\programs\python35\lib\http\client.py

", line 488, in readinto
    n = self.fp.readinto(b)
  File "d:\programs\python35\lib\socket.py

", line 575, in readinto
    return self._sock.recv_into(b)
  File "d:\programs\python35\lib\ssl.py

", line 929, in recv_into
    return self.read(nbytes, buffer)
  File "d:\programs\python35\lib\ssl.py

", line 791, in read
    return self._sslobj.read(len, buffer)
  File "d:\programs\python35\lib\ssl.py

", line 575, in read
    v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "d:\programs\python35\lib\site-packages\pip\basecommand.py

", line 209, in main
    status = self.run(options, args)
  File "d:\programs\python35\lib\site-packages\pip\commands\install.py

", line 299, in run
    requirement_set.prepare_files(finder)
  File "d:\programs\python35\lib\site-packages\pip\req\req_set.py

", line 360, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "d:\programs\python35\lib\site-packages\pip\req\req_set.py

", line 577, in _prepare_file
    session=self.session, hashes=hashes)
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 810, in unpack_url
    hashes=hashes
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 649, in unpack_http_url
    hashes)
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 871, in _download_http_url
    _download_url(resp, link, content_file, hashes)
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 595, in _download_url
    hashes.check_against_chunks(downloaded_chunks)
  File "d:\programs\python35\lib\site-packages\pip\utils\hashes.py

", line 46, in check_against_chunks
    for chunk in chunks:
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 563, in written_chunks
    for chunk in chunks:
  File "d:\programs\python35\lib\site-packages\pip\utils\ui.py

", line 139, in iter
    for x in it:
  File "d:\programs\python35\lib\site-packages\pip\download.py

", line 552, in resp_read
    decode_content=False):
  File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py

", line 344, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py

", line 311, in read
    flush_decoder = True
  File "d:\programs\python35\lib\contextlib.py

", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py

", line 231, in _error_catcher
    raise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org

', port=443): Read timed out.

python pip安装报错: ConnectTimeoutError的更多相关文章

  1. Python——pip安装报错:is not a supported wheel on this platform

    pip安装报错:is not a supported wheel on this platform 可能的原因1:安装的不是对应python版本的库,下载的库名中cp35代表python3.5,其它同 ...

  2. python pip安装报错python setup.py egg_info failed with error code 1

    安装locust遇到点问题折腾了好一会儿,记录一下. 使用命令pip install locustio提示python setup.py egg_info  failed with error cod ...

  3. 安装Tensorflow过程pip安装报错:is not a supported wheel on this platform

    安装Tensorflow过程pip安装报错:is not a supported wheel on this platform 通过pip安装wheel镜像时,安装指令为: pip install - ...

  4. pip安装报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy

    pip安装报错 解决办法: pip install selenium -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

  5. 使用pip安装报错的处理方法

    在新的机子上使用pip安装程序一直报错: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connect ...

  6. pip安装报错处理+PyPi源切换教程

    一.pip安装出错类型 1.1 pip版本过旧导致不能安装 报错提示: You are using pip version 9.0.3, however version 10.0.1 is avail ...

  7. 【python】pip安装报错UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 7: ordinal not in range(128)

    刚安装完python,准备pip安装第三方库的时候出现了一个错误: UnicodeDecodeError: ‘ascii’ code can’t decode byte 0xef in positio ...

  8. python中使用pip安装报错:Fatal error in launcher... 解决方法

    python安装了2和3版本在 cmd 中用pip报的错误为:Fatal error in launcher:Unable to create process using 这是因为你安装了python ...

  9. Python中pip安装报错Unable to create process using '....'

    因为我本人在电脑上安装了python2和python3,所以在安装的时候,把两个python的安装目录都安装到G盘了.然后两个python的执行文件分别改成了 python2.exe 和  pytho ...

随机推荐

  1. 穿过代理获取真正的IP

    /// <summary> /// 获取真ip /// </summary> /// <returns></returns> public string ...

  2. ASP.NET Core 2 学习笔记(十一)Cookies & Session

    基本上HTTP是没有记录状态的协定,但可以通过Cookies将Request来源区分出来,并将部分数据暂存于Cookies及Session,是写网站常用的用户数据暂存方式.本篇将介绍如何在ASP.NE ...

  3. xshell复制粘贴

    用户看到这个标题肯定会觉得小编脑子坏掉了,复制粘贴不就是Ctrl+C,Ctrl+V嘛,但是在xshell却不尽然. 现象: 在xshell界面中需要用到之前的一段代码,自然是选中,熟练的键入Ctrl+ ...

  4. python学习之老男孩python全栈第九期_数据库day001 -- 作业

    创建如图所示数据库: 创建过程:  查看数据库,创建数据库 db1,再查看一下数据库  进入数据库,查看一下表  接着再创建一个class表 发现增加了重复数据,因此要把第二个修改一下  修改完数据之 ...

  5. css的元素表现

    块级元素和行内元素的表现: 块级元素:块级元素和父元素的宽度一致,默认情况下就是和body的宽度一样,也可以说和浏览器窗口的宽度一致,致使同一行不能再放下另外的元素,所以块级元素表现为独占一行. 块级 ...

  6. idea appliction context not configured for this file

    File --> Project Structure

  7. java实现Kafka的消费者示例

    使用java实现Kafka的消费者 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 ...

  8. log4j.properties 配置示例

    需要的jar如下: !-- log4j --> <dependency> <groupId>log4j</groupId> <artifactId> ...

  9. Oracle EBS 隐藏帮助-诊断-检查

  10. 【MySQL】无法启动mysql服务(位于本地计算机上)错误1067,进程意外中止

    好久没看MySQL了,今天启动起来找找感觉,尴尬了...发现服务启动不了.系统提示:无法启动mysql服务(位于本地计算机上)错误1067,进程意外中止. 解决过程: 1.在网上百度好久,看到一条解决 ...