MiniConda安装

1) 使用wget下载

wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.9.2-Linux-x86_64.sh

描述

(或者使用本地sh安装包,路径在:/public/software/apps/DeepLearning/whl/Miniconda/)
2) 添加权限并运行

chmod +x Miniconda3-py37_4.9.2-Linux-x86_64.sh
mkdir -p ~/miniconda3/
bash Miniconda3-py37_4.9.2-Linux-x86_64.sh -b -f -p "~/miniconda3/"
rm -rf Miniconda3-py37_4.9.2-Linux-x86_64.sh

3) 初始化 conda 环境

~/miniconda3/bin/conda init
source ~/.bashrc

注意:执行~/miniconda3/bin/conda init后,slurm脚本里不要执行source ~/.bashrc启动conda,而是执行source ~/miniconda3/etc/profile.d/conda.sh来代替。例如:

描述

results matching ""

    No results matching ""