1、添加用户
adduser san passwd san chmod 644 /etc/sudoers vi /etc/sudoers san ALL=(ALL) ALL
2、获取miniconda3,安装到/home/san/miniconda3
su san cd /home/san mkdir software cd software wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-check-certificate bash Miniconda3-latest-Linux-x86_64.sh
3、配置conda源,pip源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/qiime2/ conda config --set show_channel_urls yes cd mkdir .pip cd .pip vi pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = https://pypi.tuna.tsinghua.edu.cn :wq!
4、创建环境
conda create -y --name airflow python=3.7
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)