错误:

解决方案:

 使用镜像: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. MQ之如何做到消息幂等 (转 优秀)

    一.缘起 MQ消息必达,架构上有两个核心设计点: (1)消息落地 (2)消息超时.重传.确认 再次回顾消息总线核心架构,它由 发送端.服务端.固化存储.接收端 四大部分组成. 为保证消息的可达性,超时 ...

  2. php判断是否isPhone、is_weixin

    protected function isPhone(){ $agent = strtolower($_SERVER['HTTP_USER_AGENT']); //pc请求头信息数组 $pc_arr= ...

  3. CSS3选择器:nth-child和:nth-of-type之间的差异——张鑫旭

    一.深呼吸,直接内容 :nth-child和:nth-of-type都是CSS3中的伪类选择器,其作用近似却又不完全一样,对于不熟悉的人对其可能不是很区分,本文就将介绍两者的不同,以便于大家正确灵活使 ...

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

    https://www.cnblogs.com/YD2018/p/9451809.html 11. 查询学过“001”并且也学过编号“002”课程的同学的学号.姓名 select student.si ...

  5. python学习之老男孩python全栈第九期_day015知识点总结

    # 作用域相关(2)locals() # 返回本地作用域中的所有名字 globals() # 返回全局作用域中的所有名字 # 迭代器/生成器相关(3)range()print('__next__' i ...

  6. ORA-00054 资源正忙

    现象: 执行update.truncate提示 ORA-00054: resource busy and acquire with NOWAIT specified. 解决方法: 因为系统是RAC系统 ...

  7. Aspose.cells常用用法1

    代码: var execl_path = @"G:\zhyue\backup\项目修改-工作日常\2018-11-12 区域楼盘中心点和放大比例计算\a.xlsx"; Workbo ...

  8. linux中文字体

     ◆ 背景说明 报表,在windows下,展现.导出都正常,在linux下,字体变大了.比如,单元格的大小设计好后,里面的字当好能一行显示完,将报表放到linux下后,字变大了,一行显示不完了,变 ...

  9. Week8——hashcode()和equals()方法

    equals()方法  Object类中的equals方法和“==”是一样的,没有区别,即俩个对象的比较是比较他们的栈内存中存储的内存地址.而String类,Integer类等等一些类,是重写了equ ...

  10. CCSUOJ评测系统

    队名: BUGG 团队信息与分工: 开发: 周斌 B20150304221 舒 溢 B20150304209 测试: 许嘉荣 B20150304213 唐 浩 B20150304316 Product ...