再用Python的pip安装包的时候出现以下错误,时间超时,解决办法就是吧等待时间调长

pip --default-timeout=1000 install requests(包名)

报错如下

ERROR: Exception:
Traceback (most recent call last):File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 304, in recv_intoreturn self.connection.recv_into(*args, **kwargs)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1822, in recv_intoself._raise_ssl_error(self._ssl, result)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1622, in _raise_ssl_errorraise WantReadError()
OpenSSL.SSL.WantReadErrorDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 304, in recv_intoreturn self.connection.recv_into(*args, **kwargs)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1822, in recv_intoself._raise_ssl_error(self._ssl, result)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/OpenSSL/SSL.py", line 1622, in _raise_ssl_errorraise WantReadError()
OpenSSL.SSL.WantReadErrorDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 397, in _error_catcheryieldFile "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 479, in readdata = self._fp.read(amt)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 62, in readdata = self.__fp.read(amt)File "/home/zhanshen/anaconda3/lib/python3.7/http/client.py", line 457, in readn = self.readinto(b)File "/home/zhanshen/anaconda3/lib/python3.7/http/client.py", line 501, in readinton = self.fp.readinto(b)File "/home/zhanshen/anaconda3/lib/python3.7/socket.py", line 589, in readintoreturn self._sock.recv_into(b)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 319, in recv_intoreturn self.recv_into(*args, **kwargs)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 317, in recv_intoraise timeout('The read operation timed out')
socket.timeout: The read operation timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 188, in mainstatus = self.run(options, args)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 345, in runresolver.resolve(requirement_set)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 196, in resolveself._resolve_one(requirement_set, req)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 359, in _resolve_oneabstract_dist = self._get_abstract_dist_for(req_to_install)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 307, in _get_abstract_dist_forself.require_hashesFile "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 199, in prepare_linked_requirementprogress_bar=self.progress_barFile "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 1064, in unpack_urlprogress_bar=progress_barFile "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 924, in unpack_http_urlprogress_bar)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 1152, in _download_http_url_download_url(resp, link, content_file, hashes, progress_bar)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 861, in _download_urlhashes.check_against_chunks(downloaded_chunks)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/utils/hashes.py", line 75, in check_against_chunksfor chunk in chunks:File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 829, in written_chunksfor chunk in chunks:File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/utils/ui.py", line 156, in iterfor x in it:File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_internal/download.py", line 818, in resp_readdecode_content=False):File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 531, in streamdata = self.read(amt=amt, decode_content=decode_content)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 496, in readraise IncompleteRead(self._fp_bytes_read, self.length_remaining)File "/home/zhanshen/anaconda3/lib/python3.7/contextlib.py", line 130, in __exit__self.gen.throw(type, value, traceback)File "/home/zhanshen/anaconda3/lib/python3.7/site-packages/pip/_vendor/urllib3/response.py", line 402, in _error_catcherraise ReadTimeoutError(self._pool, None, 'Read timed out.')
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.相关推荐

  1. HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out的解决方法

    HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out的解决方法 参考文章: (1)HTTPSConn ...

  2. HTTPSConnectionPool(host=‘files.pythonhosted.org‘, port=443): Read timed out.

    python 下载第三方库的时候一直报错怎么办, pip --default-timeout=1000 install -U pip 尝试了延时操作依然不行,不能获取 这种情况有可能是你开了VPN或者 ...

  3. ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.

    problem: pip install selenium 出现错误:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', por ...

  4. pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org',

    我们在pycharm中安装库的时候经常会遇到如下所示的错误. pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool( ...

  5. pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=files.pythonhosted.org解决方案

      大家好,我是爱编程的喵喵.双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中.从事机器学习以及相关的前后端开发工作.曾在阿里云.科大讯飞.CCF等比赛获得多次Top名次.现 ...

  6. ReadTimeoutError: HTTPSConnectionPool(host=‘cdn-lfs.huggingface.co‘, port=443)

    问题 最近遇到需要从hugging face下载并导入预训练模型SimCSE,然后进行计算文本相似度,代码如下: from transformers import AutoModel, AutoTok ...

  7. pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=”files.pythonhosted.org“,

    问题描述:在Windows命令行和pycharm中,用pip命令安装pillow时出现以上超时错误. 解决方法:改用conda安装 conda install pillow 更多参考:https:// ...

  8. 解决python问题:HTTPSConnectionPool(host=‘finance.yahoo.com‘, port=443): Read timed out. (read timeout=30

    检查pip有没安装cryptography,pyOpenSSL,certifi要是没有先安装 pip install cryptography pip install pyOpenSSL pip in ...

  9. CelebA数据集下载|HTTPSConnectionPool(host=‘drive.google.com‘, port=443)|RuntimeError:Dataset not found

    CeleA是香港中文大学的开放数据,包含10177个名人身份的202599张图片,并且都做好了特征标记,这个数据集对人脸相关的训练来说是非常好用的数据集. 但是它不像其他数据集一样可以自动下载,比如m ...

最新文章

  1. [Python]urllib库的简单应用-实现北航宿舍自动上网
  2. IIS出现server application error,请问怎么解决?
  3. 对NUnitAddIn做了下修改
  4. 有事情不能第一时间给父母说
  5. c语言 生成一维条形码,C# BarcodeLib。dll 生成一维码的问题
  6. background意识(两)
  7. python统计汉字字数_Python 统计字数的思路详解
  8. javascript for循环 日期 select
  9. 长沙火宫殿城大庙会迎客 演绎传统与潮流交融
  10. 库依赖关系和开源供应链带来的噩梦
  11. #pragma的用法
  12. Android6.0之前版本(AwesomePlayer)OMXCodec执行流程细节
  13. C#问题——interface class
  14. 使用Jenkins自动化部署项目
  15. 1.3 - 字典练习题
  16. 如何安全的使用密码登录账号(在不知道密码的情况下)
  17. Memcached详解
  18. 摇床摇篮是哄睡很好用的工具
  19. python日志处理(logging模块)
  20. CSS 中 a 标签为什么不能继承父类的颜色?

热门文章

  1. Windows10 1607版本锁屏聚焦黑屏问题解决办法
  2. 32位ARM®Cortex®-M0+内核单片机 XL32F003系列MCU
  3. http请求包与请求返回的是什么
  4. java开源saas项目
  5. 在Fedora 14下安装yong输入法
  6. Fedora 14 root权限登录
  7. addEventListener( ) 方法 -- 事件监听
  8. QGraphicsView通过鼠标操作来绘制图元
  9. 象棋联机java代码_java实现简单网络象棋游戏
  10. 真正的IT技术男是什么样的