Anaconda 软件安装教程

1. 安装编译 Anaconda3

(1)下载安装程序 Anaconda3-2020.07-Linux-x86_64.sh。

(2)创建目录 /public/home/username/soft/Anaconda3,将安装程序移至此目录。

(3)进入Anaconda3目录,运行命令:

bash Anaconda3-2020.07-Linux-x86_64.sh –u  ## -u:不自动创建目录

Welcome to Anaconda3 2020.07

(4)In order to continue the installation process, please review the license agreement.

Please, press ENTER to continue(直接ENTER)
>>>

(5)Do you accept the license terms? [yes|no]

[no] >>> yes(输入yes)

(6)Anaconda3 will now be installed into this location:

/public/home/username/anaconda3(默认目录)

- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below

[/public/home/username/anaconda3] >>> /public/home/username/soft/Anaconda3(更改安装目录)
PREFIX=/public/home/username/soft/Anaconda3
Unpacking payload ...
Collecting package metadata (current_repodata.json): done                                                                                                                               
Solving environment: done

(7)下一步:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes(输入yes)



==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup, 
set the auto_activate_base parameter to false: 

conda config --set auto_activate_base false

Thank you for installing Anaconda3!

===========================================================================

Working with Python and Jupyter notebooks is a breeze with PyCharm
Professional! Code completion, Notebook debugger, VCS support, SSH, Docker,
Databases, and more!

Get a free trial at: https://www.anaconda.com/pycharm

2. 配置环境

(1)安装完毕,执行命令:

source ~/.bashrc

(2)查看conda安装是否成功,执行命令:

which conda

出现conda路径,则表示安装成功: ~/soft/Anaconda3/bin/conda

(3)若没有搜到conda路径,需要配置conda环境变量:

vi ~/.bashrc

(4)添加语句:

export PATH=/public/home/username/soft/Anaconda3/bin:$PATH

3. 测试 Anaconda3

测试Anaconda3,执行python3

python3
Python 3.8.3 (default, Jul  2 2020, 16:21:59) 
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

results matching ""

    No results matching ""