错误:

解决方案:

 使用镜像: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. sql or语法

    1.mysql中or语法的使用,在mysql语法中or使用注意点. 项目遇到坑,遍历发放奖励数据查询错误!!! $sql = 'SELECT * FROM `vvt_spread_doubleegg_ ...

  2. 算警示吧——此文来自张鑫旭(说说CSS学习中的瓶颈)

    by zhangxinxu from http://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=2523 虽已数年,但未 ...

  3. 转:JS判断值是否是数字(两种方法)

    JS判断值是否是数字   1.使用isNaN()函数 isNaN()的缺点就在于 null.空格以及空串会被按照0来处理 NaN: Not a Number /***判断是否是数字***/ 1 2 3 ...

  4. css固定广告栏

    <div style="position: fixed; left: 50%; top: 100px; margin-left: -621px;"> <div&g ...

  5. Ubuntu-16.04-Desktop +Hadoop2.7.5+Eclipse-Neon的云计算开发环境的搭建(伪分布式方式)

    主控终端 主机名 ubuntuhadoop.smartmap.com IP 192.168.1.60 Subnet mask 255.255.255.0 Gateway 192.168.1.1 DNS ...

  6. ARCGIS知乎上的好文章

    http://zhihu.esrichina.com.cn/?/feature/ArcGISAndroidDevNote ArcGIS知乎上有哪些干货可以推荐? http://zhihu.esrich ...

  7. canvas验证码 - 滑块拼图

    滑块拼图型的验证方式已经流行起来,多数的实现方式是直接加载两张分割好的图片.现在用canvas去自动修剪图片,节省修图工作量和http请求: 加载一张整图,用canvas切割缺口,缺口位置在固定范围内 ...

  8. idea 断点调试

    一.步骤控制 二.查看变量 IDEA debug查看变量值有3种方法: 1.鼠标悬浮 2.alt+f8快捷键(选中变量表达式,比如匿名变量或方法参数,再按atl+f8,接着回车) 3.debug窗口查 ...

  9. 如何在定制化组件中实现并使用v-model

    https://alligator.io/vuejs/add-v-model-support/

  10. 使用CADisplayLink写秒表

    使用CADisplayLink写秒表 效果: 源码: StopWatch.h 与 StopWatch.m // // StopWatch.h // ShowTime // // Created by ...