安装tensorflow的正确命令 [英] the correct command of install tensorflow
问题描述
当尝试在Anaconda上安装Tensorflow时,我尝试了两种类型的命令. conda install tensorflow-gpu
正常工作.但是,尝试在此处所示的conda install -c anaconda tensorflow-gpu
时.它给出以下错误信息.
When trying to install Tensorflow on Anaconda, I tried two types of commands. conda install tensorflow-gpu
works just fine. However, when trying conda install -c anaconda tensorflow-gpu
as shown here. It gives the following error message.
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',))",),)
可能是什么原因?
推荐答案
对于可能不知道-c
或--channel
选项的某些人,添加了channel
for conda
来搜索软件包.
for some who might not know the -c
or --channel
option adds a channel
for conda
to search for the package.
请尝试以下操作:
anaconda logout
conda update conda
比尝试重新安装
还请查看官方的网站,以了解安装TensorFlow
使用Anaconda
安装
also please look at the official web-site to see specifics of installing TensorFlow
using Anaconda
installation
这篇关于安装tensorflow的正确命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!