首页 Paddle框架 帖子详情
pip安装paddlepaddle报错如何解
收藏
快速回复
Paddle框架 问答深度学习 2225 3
pip安装paddlepaddle报错如何解
收藏
快速回复
Paddle框架 问答深度学习 2225 3

在阡陌机器上,使用pip安装paddlepaddle,报错:

Exception:
Traceback (most recent call last):
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 228, in main
status = self.run(options, args)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 291, in run
resolver.resolve(requirement_set)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/resolve.py", line 103, in resolve
self._resolve_one(requirement_set, req)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/resolve.py", line 257, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for
self.require_hashes
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 310, in prepare_linked_requirement
progress_bar=self.progress_bar
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 837, in unpack_url
progress_bar=progress_bar
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 674, in unpack_http_url
progress_bar)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 898, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 618, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/utils/hashes.py", line 48, in check_against_chunks
for chunk in chunks:
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 586, in written_chunks
for chunk in chunks:
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/utils/ui.py", line 159, in iter
for x in it:
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_internal/download.py", line 575, in resp_read
decode_content=False):
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/home/work/.jumbo/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/home/work/.jumbo/lib/python2.7/site-packages/pip/_vendor/urllib3/response.py", line 316, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

 

0
收藏
回复
全部评论(3)
时间顺序
夜雨飘零1
#2 回复于2018-05

你这个是网络问题呢,都是几次吧。要不就换一个网络。还有最后把代码专门有代码框填写。

0
回复
玉茄子1007
#3 回复于2018-05

重试了几次可以了,谢谢~

0
回复
勇敢者2860102
#4 回复于2023-03

多试几次

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户