1. Download anaconda
Official website link: Anaconda | Anaconda Distribution
Directly select Download, it will automatically identify the system and download the latest version
2. Install anaconda
Go to the download folder and run the installation file
bash Anaconda3-2023.03-Linux-x86_64.sh
Accept the installation agreement, enter yes; read the registration information, and then enter yes; determine the installation location of anaconda, press enter to confirm, add the prompt information of the environment variable, enter yes
3. Add environment variables
sudo gedit ~/.bashrc
In the last two lines of the file write
export PATH="~/anaconda3/bin":$PATH
source ~/anaconda3/bin/activate
application configuration
source ~/.bashrc
Re-open a terminal, you will find that it automatically enters the (base) environment, and you can use Anaconda3 by default
You can use the following command to set the automatic entry to the base environment to False and it will not automatically enter
conda config --set auto_activate_base false
Verify that anaconda is installed successfully
conda -V
If the anaconda version number is displayed, it is a success! ! !