为了账号安全,请及时绑定邮箱和手机立即绑定

构建泊坞窗映像时出错

构建泊坞窗映像时出错

ABOUTYOU 2022-08-16 16:18:31
我的 Docker 文件是FROM python:3ADD myapp.py /RUN pip3 install tensorflow-gpuRUN pip3 install numpyRUN pip3 install pandasCMD ["python3", "./myapp.py]当我使用构建 docker 映像时,我收到以下错误docker build -t gaurav .Step 4/5 : RUN  pip3 install tensorflow-gpu ---> Running in 8f938c75e2e0WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fae543d7cd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/tensorflow-gpu/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fae543d79d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/tensorflow-gpu/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fae543d7220>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/tensorflow-gpu/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fae543d7640>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/tensorflow-gpu/你能帮我吗,我想安装所有这些软件包,但我无法克服这些错误。
查看完整描述

2 回答

?
慕妹3146593

TA贡献1820条经验 获得超9个赞

https://github.com/tensorflow/tensorflow/issues/33374 - tensorflow不适用于python3.8,因此您必须在3.7或更高版本中使用python映像:

FROM python:3.7


查看完整回答
反对 回复 2022-08-16
?
婷婷同学_

TA贡献1844条经验 获得超8个赞

如这里所述,张量流 - 要求

Tensorflow 仅支持 Python 3.5–3.7


查看完整回答
反对 回复 2022-08-16
  • 2 回答
  • 0 关注
  • 144 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号