簡體   English   中英

無法安裝TensorFlow

[英]Cannot install 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',))

似乎files.pythonhosted.org https://status.python.org/有問題

我認為pip網站也有同樣的問題。 我無法使用安裝任何東西。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM