简体   繁体   English

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

[英]Issue with installing packages on virtual environment created by anaconda

I installed anaconda on a sandbox in my work and trying to install tensorflow. 我在工作中的沙盒上安装了anaconda,并尝试安装tensorflow。 I ran below command and run into issue. 我在命令下运行并遇到问题。

(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

I tried below command to check if internet is available on that box 我尝试下面的命令来检查该盒子上是否有互联网

(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

I am trying to find dest IP and any port(s) required so that I can ask my network admin to whitelist it. 我试图找到目标IP和所需的任何端口,以便我可以要求网络管理员将其列入白名单。 I might have to install lot of other packages. 我可能必须安装许多其他软件包。 Do I have to find IPs for all those websites also and whitelist them? 我是否还必须为所有这些网站查找IP并将其列入白名单? Wondering if there is a clean and easy way to resolve this issue 想知道是否有干净简单的方法来解决此问题

Any one ran into this issue? 有人遇到这个问题吗?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM