1. Download the installation package
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
Or
https://www.anaconda.com/distribution/#download-section
Download the Anaconda3-2019.10-Linux-x86_64.sh
2. Install
cd / download bash Anaconda3 - 2019.10 . -Linux-x86_64 SH
3. The installation process has been pressing Enter, finally prompt Do you wish the installer to initialize Anaconda3 by running conda init? Input NO , Enter
4. modify environment variables
vim ~/.bashrc
Ensure consistent path conda initialize the path configuration and true system.
# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/home/xl/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/home/xl/anaconda3/etc/profile.d/conda.sh" ]; then . "/home/xl/anaconda3/etc/profile.d/conda.sh" else export PATH="/home/xl/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
5. conda info command line input address does not activate the display, modify
Command line, enter: correct address conda activate anaconda3 installed
conda activate /home/xl/anaconda3
6. Verify that the installation was successful
Command line, type: python3
Output:
Python 3.7.4 (default, Aug 13 2019, 20:35:49) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>>
Local python3 ubuntu system is version 3.6, python version anaconda3 installation package is 3.7.
Verification is successful.