Docker Singularity在尝试安装TF2时不断出错
我试图用一个配方创造一个新的奇点,但一直失败。我将它链接到我的github,所以当我提交它时,它将自动构建和编译,以便该部分工作正常。然而,它一直给我这样一个错误Docker Singularity在尝试安装TF2时不断出错,docker,tensorflow,singularity-container,Docker,Tensorflow,Singularity Container,我试图用一个配方创造一个新的奇点,但一直失败。我将它链接到我的github,所以当我提交它时,它将自动构建和编译,以便该部分工作正常。然而,它一直给我这样一个错误 pip3 install -U keras tensorflow-gpu/bin/sh: 2: pip3: not found ABORT: Aborting with RETVAL=255Image failed to build: build end 80 seconds.Return value of 1.End Time:
pip3 install -U keras tensorflow-gpu/bin/sh: 2: pip3: not found
ABORT: Aborting with RETVAL=255Image failed to build: build end 80 seconds.Return value of 1.End Time: Tue Dec 24 02:52:44 UTC 2019.
我试过各种各样的方法,但都看不见效果。这是我的配方文件,我肯定这有问题
Bootstrap: docker
From: tensorflow/tensorflow:latest-gpu-jupyter
%runscript
exec echo "Tensorflow GPU container"
%files
%environment
export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
%labels
%post
pip3 install -U keras tensorflow-gpu
pip3 install boto3
pip3 install awscli
pip3 install opencv-contrib-python
pip3 install tensorlayer
pip3 install click
pip3 install tqdm
pip3 install easydict
pip3 install autopep8
pip3 install jupyter_contrib_nbextensions && jupyter contrib nbextension install
pip3 install Pillow
pip3 install numpy
pip3 install Pillow
pip3 install matplotlib
apt-get update
apt-get -y install python3-tk
apt-get install -y libsm6 libxext6
哦,我正在把这个贴到网站上
这是实际的帖子
更新:
所以这是可行的。但我还需要其他的LIB。如何安装它们
Bootstrap: docker
From: tensorflow/tensorflow:latest-gpu-jupyter
%runscript
exec echo "Tensorflow GPU container"
%files
%environment
export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
%labels
%post
apt-get update
apt-get install python-pip
apt-get -y install python3-tk
apt-get install -y libsm6 libxext6
好的,在看了很多其他的例子之后,终于开始工作了 这是它的最终配方文件
Bootstrap:docker
From:tensorflow/tensorflow:2.0.0-gpu-py3
%职位
apt get update&&apt get install-y--不建议安装\
卷曲\
解压\
吉特\
openssl\
ca证书\
protobuf编译器\
&& \
apt get clean&rm-rf/var/lib/apt/lists/*
/usr/local/bin/pip3--无缓存目录安装\
车轮\
枕头\
opencv python\
matplotlib\
努比\
熊猫\
松软的\
sklearn\
TQM\
argparse\
博托\
mtcnn\
赛昂\
上下文lib2\
lxml\
轻松的\
卡格尔\
海本\
tensorflow插件\
tensorflow数据集\
朱皮特
%环境
导出LC_ALL=C.UTF-8
导出语言=C.UTF-8
导出SSL证书文件=“/etc/SSL/certs/ca certificates.crt”