在anaconda创建的虚拟环境上安装软件包的问题

时间:2017-11-10 18:46:49

标签: python linux networking pip anaconda

我在我的工作中在沙盒上安装了anaconda并尝试安装tensorflow。我跑到命令之下并遇到问题。

(venv) [root@box4 venv]# pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl
Collecting tensorflow-gpu==1.4.0 from https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6304ba9e80>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl 
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6304ba9f28>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f6304b5c048>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /tensorflow/linux/gpu/tensorflow_gpu-1.4.0-cp36-cp36m-linux_x86_64.whl
^COperation cancelled by user

我尝试下面的命令检查该框上是否有互联网

(venv) [root@gmc4bayer venv]# ping storage.googleapis.com
PING storage.l.googleusercontent.com (172.217.12.48) 56(84) bytes of data.
^C
--- storage.l.googleusercontent.com ping statistics ---
19 packets transmitted, 0 received, 100% packet loss, time 17999ms

我正在尝试查找目标IP和所需的任何端口,以便我可以让我的网络管理员将其列入白名单。我可能要安装很多其他软件包。我是否必须为所有这些网站找到IP并将其列入白名单?想知道是否有一种简洁明了的方法来解决这个问题

有人遇到过这个问题吗?

1 个答案:

答案 0 :(得分:0)

我建议您使用Anaconda Navigator来安装软件包。