anaconda installation in linux (Ubuntu)

1. First go to the official address to download the corresponding installation package

Ubuntu - anaconda download address

2. Then install the anaconda command directly

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

see during installation

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 remember the address

接下来会提示安装地址: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 installed successfully

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

Anaconda will automatically add environment variables to PATH. If you find that the output conda prompts that there is no such command, then you need to configure the environment.

3. Environment configuration

vim ~/.basrcOpen the configuration file and add the following at the end

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

source ~/.bashrc This is to update the environment variables, and it can be used normally.

3. Test results

Enter the conda list test again, there should be no problem!

Author: One Skill Breaks Ten Thousand Laws
Link: https://www.jianshu.com/p/8634f31eafb0
Source: Brief Book

Guess you like

Origin blog.csdn.net/lockhou/article/details/126084883