當試圖在Anaconda上安裝Tensorflow時,我嘗試了兩種類型的命令。 conda install tensorflow-gpu
工作得很好。但是,嘗試conda install -c anaconda tensorflow-gpu
時,如here所示。它給出了以下錯誤消息。正確的安裝tensorflow命令
Fetching package metadata ...
CondaHTTPError: HTTP None None for url <https://conda.anaconda.org/anaconda/linux-64/repodata.json>
Elapsed: None
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /anaconda/linux-64/repodata.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x2b8e3f4ec110>: Failed to establish a new connection: [Errno -2] Name or service not known',))",),)
可能是什麼原因?
你嘗試安裝再次 – ksai
你的互聯網連接似乎是問題,請嘗試增加https超時! –
您應該避免安裝anaconda版本,並在可能的情況下使用pip。 conda版本不受支持。 – JCooke