错误:

解决方案:

 使用镜像: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. mysql 存储引擎 配置文件my.ini 的配置方式

    如果想使修改后的参数生效,须重新启动MySQL服务器. #存储引擎设置 default-storage-engine = INNODB

  2. Pig autocomplete 自动补全

    在pig的grunt环境下,按TAB键可以自动补全命令,用户可以添加自己的补全信息. 在conf目录下创建autocomplete文件,添加如下内容: hdfs://vm1:8020/   在grun ...

  3. with admin option /with grant option

    1. with admin option是用在系统权限上的,with grant option是用在对象权限上的. SQL> grant create synonym to scott with ...

  4. Ubuntu16安装GPU版本TensorFlow(个人笔记本电脑)

    想着开始学习tf了怎么能不用GPU,网上查了一下发现GeForce GTX确实支持GPU运算,所以就尝试部署了一下,在这里记录一下,避免大家少走弯路. 使用个人笔记本电脑thinkpadE570,内存 ...

  5. Eigen学习

    Eigen 是一个基于C++的线性代数库,其中实现大量常用的线性代数算法,包括常规矩阵计算,矩阵变换,矩阵分解,矩阵块操作.Eigen 广泛地应用在开源项目中,例如OpenCV,PCL(Point C ...

  6. OtterTune来了,DBA怎么办

    https://blog.csdn.net/xiangzhihong8/article/details/72887476 最近AI的新闻特别多,席卷了围棋圈之后,成为了技术圈和媒体热捧的话题. 今天又 ...

  7. 1.windows下Redis安装

    参考文档:https://www.cnblogs.com/Leo_wl/p/6392196.html?utm_source=itdadao&utm_medium=referral Redis数 ...

  8. UIWebView如何加载本地图片

    UIWebView如何加载本地图片 UIWebView加载本地图片是有实用价值的.比方说,有时候我们需要本地加载静态页来显示相关帮助信息,而这些帮助信息当中含有很多很多的富文本,用代码实现难度较大,这 ...

  9. 使用UISearchDisplayController

    使用UISearchDisplayController 虽然UISearchDisplayController名字中带有controller,可他不是一个UIView相关的controller,因为, ...

  10. Python(二)列表的增删改查

    一,列表的增删改查 列表中增加元素: 1,从列表的末尾增加一个元素:append("") 2,从列表中插入一个元素:insert(下标位置,插入的元素) 合并列表: 1,name. ...