无法安装TensorFlow

时间:2018-04-16 16:17:28

标签: python tensorflow

我正在尝试在远程计算机上安装tensorflow。我只是众多用户中的一员。我使用的命令(并被告知使用)是:

pip install tensorflow --user

然而,我收到了一个错误:" ResponseError('过多的503错误响应',)"。

当我搜索这个错误时,它说更多的HTTP请求压倒了服务器。这不是我在这里做的,为什么我会看到这个错误,我该如何解决?

[user@remote ~]$ pip install tensorflow --user
Collecting tensorflow
Exception:
Traceback (most recent call last):
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 732, in urlopen
    body_pos=body_pos, **response_kw)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 732, in urlopen
    body_pos=body_pos, **response_kw)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 732, in urlopen
    body_pos=body_pos, **response_kw)
  [Previous line repeated 1 more times]
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/urllib3/connectionpool.py", line 712, in urlopen
    retries = retries.increment(method, url, response=response, _pool=self)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
pip._vendor.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/38/4a/42ba8d00a50a9fafc88dd5935246ecc64ffe1f6a0258ef535ffb9652140b/tensorflow-1.7.0-cp36-cp36m-manylinux1_x86_64.whl (Caused by ResponseError('too many 503 error responses',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/commands/install.py", line 324, in run
    requirement_set.prepare_files(finder)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/req/req_set.py", line 620, in _prepare_file
    session=self.session, hashes=hashes)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/download.py", line 821, in unpack_url
    hashes=hashes
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/download.py", line 659, in unpack_http_url
    hashes)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/download.py", line 853, in _download_http_url
    stream=True,
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 521, in get
    return self.request('GET', url, **kwargs)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/path/python/3.6.3/core-intel1506/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 499, in send
    raise RetryError(e, request=request)
pip._vendor.requests.exceptions.RetryError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/38/4a/42ba8d00a50a9fafc88dd5935246ecc64ffe1f6a0258ef535ffb9652140b/tensorflow-1.7.0-cp36-cp36m-manylinux1_x86_64.whl (Caused by ResponseError('too many 503 error responses',))

2 个答案:

答案 0 :(得分:3)

看起来像files.pythonhosted.org https://status.python.org/

存在问题

答案 1 :(得分:0)

我认为pip网站存在同样的问题。我无法安装任何东西。