命令'/ bin / sh -c conda update conda'返回非零代码:127

时间:2019-03-10 17:15:07

标签: docker anaconda conda

我在Mac上并尝试构建一个新容器(对Docker来说是新的),我可以很好地安装Anaconda并从该容器内更新Anaconda正常工作,但是当我尝试从Dockerfile run conda update conda我收到以下错误:

我在做什么错了?

谢谢!

The command '/bin/sh -c conda update conda' returned a non-zero code: 127




FROM ubuntu:18.04
RUN apt-get update && \
    apt-get -y install curl && \
    apt-get -y install python3 && \
    apt-get -y install python3-pip && \
    python3 -m pip install --upgrade pip && \
    apt-get -y install wget && \
    apt-get -y install vim && \
    pip3 install tensorflow && \
    pip3 install keras


RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh -O ~/anaconda.sh && \
    /bin/bash ~/anaconda.sh -b -p /opt/conda && \
    rm ~/anaconda.sh && \
    ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
    echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
    echo "conda activate base" >> ~/.bashrc

RUN conda update conda
RUN conda install opencv
RUN conda install matplotlib
RUN conda install pandas
RUN conda install seaborn

0 个答案:

没有答案