构建泊坞窗映像时出错

我的 Docker 文件是


FROM python:3

ADD myapp.py /

RUN pip3 install tensorflow-gpu

RUN pip3 install numpy

RUN pip3 install pandas

CMD ["python3", "./myapp.py]

当我使用构建 docker 映像时,我收到以下错误docker build -t gaurav .


Step 4/5 : RUN  pip3 install tensorflow-gpu

 ---> Running in 8f938c75e2e0

WARNING: 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/

你能帮我吗,我想安装所有这些软件包,但我无法克服这些错误。


ABOUTYOU
浏览 146回答 2
2回答

慕妹3146593

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

婷婷同学_

如这里所述,张量流 - 要求。Tensorflow 仅支持 Python 3.5–3.7
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python