服务器上安装anaconda

wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh
sh Anaconda3-5.3.0-Linux-x86_64.sh -b
vim .bashrc

.bashrc文件的末尾加入如下内容

# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/home2/xwf/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/home2/xwf/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/home2/xwf/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/home2/xwf/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<

在命令行输入pwd获取路径信息,然后将上面的相对位置,修改为自己的路径信息即可
在这里插入图片描述
保存文件后,在终端输入:

source .bashrc

查看是否成功安装conda:

conda -V
# conda info

安装cuda对应版本的 tf

你可能感兴趣的:(深度学习,环境配置)