如何解决如果在构建奇点图像时在%post中运行,则pip install不会看到任何张量流
我正在尝试使用tf构建一个容器。 def文件是
Bootstrap: docker
From: nvidia/cuda:10.1-base
%runscript
python3 easy_train.py
%post
apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common
add-apt-repository universe
apt-get update -y
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.8 \
python3-distutils \
python3-pip \
python3-tk \
python3-setuptools
一切正常,以sudo启动shell并运行python3.8 -m pip install tensorflow==2.3.1
正常。当我将其添加到%post时,我得到
Could not find a version that satisfies the requirement tensorflow==2.3.1 (from versions: )
No matching distribution found for tensorflow==2.3.1
FATAL: While performing build: while running engine: exit status 1
我该如何解决?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。