linux中anaconda安装(Ubuntu)

1.先去官方地址下载好对应的安装包

Ubuntu - anaconda 下载地址

2.然后直接安装anaconda 命令安装

bash ~/Downloads/Anaconda3-5.2.0-Linux-x86_64.sh

安装过程中看到

step1

Welcome to Anaconda3 5.2.0
In order to continue the installation process, please review the license
agreement. (为了继续安装过程,请审核许可证。协议。)
Please, press ENTER to continue
直接按enter查看协议,然后一直enter下去,

step2

然后看到Do you accept the license terms? [yes|no](你接受许可证条款吗?)
直接输入yes 然后按enter,进入下一步

step3 记住地址

接下来会提示安装地址:Anaconda3 will now be installed into this location:
/root/anaconda3
Press ENTER to confirm the location
Press CTRL-C to abort the installation
Or specify a different location below
强烈建议默认即可,
按enter继续下一步,注意这里按ctrl + c 直接会终止安装。

step4 安装成功

接下来先等待安装即可。
看到Thank you for installing Anaconda3! 表示安装成功。

anaconda会自动将环境变量添加到PATH里面,如果后面你发现输出conda提示没有该命令,那么你需要进行环境配置

3.环境配置

vim ~/.basrc打开配置文件,在末尾添加如下内容

#export PATH=安装路径/bin:$PATH
export PATH=/root/anaconda3/bin:$PATH

source ~/.bashrc 这样就是更新环境变量,就可以正常使用了。

3.测试成果

再次输入conda list测试看看,应该就是没有问题啦!

作者:一技破万法
链接:https://www.jianshu.com/p/8634f31eafb0
来源:简书

猜你喜欢

转载自blog.csdn.net/lockhou/article/details/126084883
今日推荐