其他分享
首页 > 其他分享> > anaconda dockerfile

anaconda dockerfile

作者:互联网

 

FROM Fedora:fc34 


RUN curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh  && \
    chmod u+x anaconda.sh && ./anaconda.sh  -b  -p /root/anaconda3 && eval "$(/root/anaconda3/bin/conda  shell.bash  hook)" && \
    conda install pytorch torchvision torchaudio cpuonly -c pytorch

其中 静默安装anaconda的命令是:./anaconda.sh -b -p /root/anaconda3

激活conda:eval "$(/root/anaconda3/bin/conda shell.bash hook)"

 

标签:anaconda3,root,sh,conda,&&,anaconda,dockerfile
来源: https://www.cnblogs.com/testzcy/p/16523689.html