一、anaconda3下载地址

Anaconda | Individual Edition

二、使用版本

Anaconda3-2021.11-Linux-x86_64.sh

三、操作步骤

1、将Anaconda3-2021.11-Linux-x86_64.sh上传到linux的/home目录下;

2、在/home目录下执行命令

bash Anaconda3-2021.11-Linux-x86_64.sh

3、在执行过程中根据提示按enter和yes进行下一步;

4、主要操作步骤:

(1)在此步骤可以直接enter使用默认的安装目录/root/anaconda3;也可以自定义安装目录,直接输入安装目录/home/anaconda3;

(2) 安装成功之后的此处,按yes

 四、注意事项

如果使用的默认安装目录,则不需要再在vi ~/.bashrc结尾中配置如下环境变量:

export PATH=/home/anaconda3/bin:$PATH

 如果使用的自定义的安装目录则需要根据实际路径配置~/.bashrc,这里使用的安装目录为/home/anaconda3;

~/.bashrc默认已经配置好默认安装地址的环境变量了:

....
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/root/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/root/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/root/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

五、安装成功验证

(base) [root@slaves2 home]# conda env list
# conda environments:
#
base                  *  /root/anaconda3

(base) [root@slaves2 home]# 
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐