1.选择Anaconda版本下载
Anaconda3-2021.05-Linux-x86_64.sh
https://repo.anaconda.com/archive/
2.安装
./Anaconda3-2021.05-Linux-x86_64.sh
Welcome to Anaconda3 2021.05
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Enter
You acknowledge that, as between you and Anaconda, Anaconda owns all right, title, and interest, including all intellectual property rights,
in and to Anaconda Individual Edition and, with respect to third-party products distributed with or through Anaconda Individual Edition, th
e applicable third-party licensors own all right, title and interest, including all intellectual property rights, in and to such products. I
f you send or transmit any communications or materials to Anaconda suggesting or recommending changes to the software or documentation, incl
uding without limitation, new features or functionality relating thereto, or any comments, questions, suggestions or the like ("Feedback"),
Anaconda is free to use such Feedback. You hereby assign to Anaconda all right, title, and interest in, and Anaconda is free to use, without
any attribution or compensation to any party, any ideas, know-how, concepts, techniques or other intellectual property rights contained in
the Feedback, for any purpose whatsoever, although Anaconda is not required to use any Feedback.
--More--
Enter到结束
Do you accept the license terms? [yes|no]
[no] >>> yes
yes
Anaconda3 will now be installed into this location:
/home/xxxxx/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/xxxxx/anaconda3] >>>
Enter
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
初始化出错了(啊啊啊)
./Anaconda3-2021.05-Linux-x86_64.sh: 463: ./Anaconda3-2021.05-Linux-x86_64.sh: [[: not found
手动配置环境
vim .bashrc
最后一行加入
export PATH=/home/xxxxxx/anaconda3/bin:$PATH
保存退出
环境变量生效
source ~/.bashrc
3.检查安装成功
conda -V
conda 4.10.1
conda list
安装成功
4.建立anaconda环境
conda create -n xxx python=3.6 #建立名字为xxx的python 3.6环境
conda activate xxx #激活xxx环境