错误:

解决方案:

 使用镜像: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. 新项目找不到Angular-cli.json文件

    新项目找不到Angular-cli.json文件 Angular-cli.json文件是Angular5中cli的相关配置信息. 今天创建了新Angular项目后突然发现Angular-cli.jso ...

  2. css-使不同大小的图片在固定大小的容器中居中

    HTML示例如下: <ul> <li class="imgbox"><img src="img1.jpg"></li& ...

  3. Django基础三之视图函数

    一 Django的视图函数view 一个视图函数(类),简称视图,是一个简单的Python 函数(类),它接受Web请求并且返回Web响应. 响应可以是一张网页的HTML内容,一个重定向,一个404错 ...

  4. csv注入漏洞原理&&实战

    前言  为了找工作,巩固巩固知识.本文会介绍 csv 注入漏洞的原理,最后给出一个示例.  正文 在 csv 文件 和 xlsx 文件中的每一项的值如果是 =, @, +, - 就会被 excel 识 ...

  5. java 内存分析之this

    package Demo; /** * this 的值是当前对象的引用 * @author Aaron * */ public class Boy { private int age; public ...

  6. 7.log4j2的使用

    一.简介 log4j2相对于log4j 1.x有了脱胎换骨的变化,其官网宣称的优势有多线程下10几倍于log4j 1.x和logback的高吞吐量.可配置的审计型日志.基于插件架构的各种灵活配置等.如 ...

  7. MySQL审核工具Inception

    http://www.ywnds.com/?p=9423 https://github.com/mysql-inception/inception 一.Inception简介 Inception是集审 ...

  8. 转:线程Thread (1)

    引言 1.理解多线程 2. 线程异步与线程同步 3.创建多线程应用程序 3.1通过System.Threading命名空间的类构建 3.1.1异步调用线程 3.1.2并发问题 3.1.3线程同步 3. ...

  9. [翻译] UPCardsCarousel

    UPCardsCarousel UPCardsCarousel is a carousel with a cards based UI for iOS. UPCardsCarousel是一个旋转木马效 ...

  10. [翻译] SCViewShaker

    SCViewShaker https://github.com/rFlex/SCViewShaker About A highly configurable UIView category for s ...