当尝试在水蟒上安装Tensorflow时,我尝试了两种类型的命令。conda install tensorflow-gpu
工作正常。但是,当尝试conda install -c anaconda tensorflow-gpu
时,如here所示。它给出以下错误消息。在
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',))",),)
原因是什么?在
张量流有两种类型:
您必须选择安装TensorFlow的机制。支持的选项如下:
virtualenv
using pip
Docker
Anaconda
我用pip来给出步骤
要安装在终端中运行以下命令
要卸载在终端中运行以下命令:
^{pr2}$对于一些可能不知道
-c
或channel
选项的人,为conda
添加一个channel
来搜索包。在请尝试以下操作:
而不是重新安装
另外,请查看官方的web-site以查看使用
Anaconda
安装TensorFlow
的细节相关问题 更多 >
编程相关推荐