Install Anaconda Distribution on Linux in 2023
1. Update system repositories:
2. Install curl package - used to fetch the installation script for Anaconda:
sudo apt-get install curl -y
3. Prepare Anaconda Installer - switch to /tmp and make it a present working directory:
4. Utilize the following “curl” command to download the Anaconda installer script. Also, make sure you download the latest version by firstly visiting their
official archive site:
curl --output anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh
5. Check that “SHA-256” checksum of the downloaded Anaconda script matches the one displayed on the official site:
6. Install Anaconda on Ubuntu Linux (In this case Ubuntu 22.04) - run the downloaded Anaconda installer script:
The Anaconda installation wizard will appear on the terminal; Please, press ENTER to continue.
Carefully read the Anaconda End User License Agreement.
When you see "--More--" keep pressing Enter until you see
Do you accept the license terms? [yes|no]
[no] >>>
Please answer 'yes' or 'no':'
>>>
and then type “yes” to move ahead:
Anaconda3 will now be installed into this location:
/home/user/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
Press Enter to confirm.
You see something like this:
[/home/user/anaconda3] >>>
PREFIX=/hom/user/anaconda3
Unpacking payload ...
Installing base environment...
Downloading and Extracting Packages
Downloading and Extracting Packages
Preparing transaction: done
Executing transaction: |
Installed package of scikit-learn can be accelerated using scikit-learn-intelex.
More details are available here: https://intel.github.io/scikit-learn-intelex
For example:
$ conda install scikit-learn-intelex
$ python -m sklearnex my_application.py
done
installation finished.
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>>
Type yes if you want to initialize anaconda3 by running conda init.
Finally, take care of these instructions:
==> 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!
7. Activate the Environment settings - activate the added environment settings in the “.bashrc” file by executing the following command:
8. Verify the Anaconda installation - check the list of conda packages:
or check out the installed version of Anaconda:
9. Remove Anaconda from Ubuntu Linux - if you want to
In the terminal, you can write out the following command to remove Anaconda from your system: