使用pip install时报错:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed
来源:互联网 发布:mint和ubuntu哪个好 编辑:程序博客网 时间:2024/04/29 01:43
使用pip install 安装grpcio时,报如下错误:
Step 10/31 : RUN pip install grpcio
---> Running in 9284ea7046be
Collecting grpcio
Downloading grpcio-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl (5.4MB)
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 620, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 821, in unpack_url
hashes=hashes
File "/usr/lib/python2.7/site-packages/pip/download.py", line 659, in unpack_http_url
hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 882, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 603, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/usr/lib/python2.7/site-packages/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/usr/lib/python2.7/site-packages/pip/download.py", line 571, in written_chunks
for chunk in chunks:
File "/usr/lib/python2.7/site-packages/pip/utils/ui.py", line 139, in iter
for x in it:
File "/usr/lib/python2.7/site-packages/pip/download.py", line 560, in resp_read
decode_content=False):
File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read
flush_decoder = True
File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.
The command '/bin/sh -c pip install grpcio' returned a non-zero code: 2
解决方法:
最简单的解决办法就是为pip install 配置代理:pip install --proxy https://ip:19527 grpcio
阅读全文
0 0
- 使用pip install时报错:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed
- pip install Error - ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read
- pip安装scrapy报错 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org, port=443) Read time out
- pip升级出错解决方法ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read ti med out.
- python安装报443,https; HTTPSConnectionPool(host='pypi.python.org', port=443):
- pip install error 在Python package下载中遇到ReadTimeoutError: HTTPSConnectionPool该怎么办
- pip install时发生raise ReadTimeoutError(self._pool, None, 'Read timed out.')的解决方案
- pip install 时报Read timed out错时解决办法
- python pip install 第三方库,报错:Read timed out
- gevent和requests同时使用报requests.exceptions.ReadTimeout:HTTPSConnectionPool(host='www.baidu.com', port=4
- python使用requests时报错requests.exceptions.SSLError: HTTPSConnectionPool
- pip install requests 报错 Could not fetch URL https://pypi.python.org/simple/requests/: There was ..r
- pip(python) && ReadTimeoutError
- pip报错:Read timed out.
- pip install mysql-connector-python安装时报错不满足requirement
- pip install mysql-connector-python安装时报错
- 使用pip install lib时报错time out
- python中使用pip install 命令时报ssl缺失的错误
- 1-002. 关于百度云人脸识别概括
- Android音频驱动-ASOC之Platform
- 小程序文档整理之 -- API(文件)
- jquery如何将下拉框的某元素设为当前选中值
- 三点求平面方程、平面法向量和点到平面的距离
- 使用pip install时报错:ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed
- 小程序文档整理之 -- API(数据缓存)
- 一款基于网易云音乐 UI,使用 Gank.Io 及豆瓣 api 开发的符合 Google Material Design 的 Android 开源项目.
- 洛谷 2014 选课
- Kotlin 第六章:类和继承
- Python 倒序排列方法梳理
- C++中string字符串切割的两种方法
- 求x的K次方
- Java中常用的排序算法