在anacond创建的虚拟环境中安装软件包时出现问题

2024-04-25 04:12:15 发布

您现在位置:Python中文网/ 问答频道 /正文

在我的工作中,我在沙箱上安装了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和任何端口(s)需要,以便我可以要求我的网络管理员白名单。我可能需要安装很多其他软件包。我是否也必须找到所有这些网站的IP地址并将其列入白名单?想知道是否有一个干净和简单的方法来解决这个问题

有人碰到过这个问题吗?你知道吗


Tags: pipcomnonebygpuvenvlinuxtensorflow