How to Install Anaconda on Ubuntu 24.04

Install Anaconda on Ubuntu 24.04

Anaconda is a distribution for both R and Python programming languages. The core purpose of the Anaconda is to help programmers and individuals in scientific computing. Moreover, it helps in package deployment, creation, and management. The Anaconda distribution comprises data science packages suitable for all platforms including Linux. Anaconda comes pre-installed with various packages and allows users to install additional packages as well. The famous libraries of Anaconda include Numpy, pandas, and Pytorch. These libraries help data scientists visualize, compute, and analyze data for scientific computing.

This guide will help the users to install Anaconda on Ubuntu 24.04.

How to Install Anaconda on Ubuntu 24.04

Anaconda does not come pre-added in the official repository, so, we need to first download the Anaconda package from its official website and then add it to Ubuntu’s system repository. Anaconda on Ubuntu can be installed by following the series of steps provided below.

Step 1: Press CTRL + Alt + T to open Terminal and update system repositories by simply executing the below command:

sudo apt update


Step 2: Before downloading Anaconda, you must change the current working directory to “tmp”. The “tmp” directory will store the downloaded files temporarily and delete the downloaded files automatically when you close the session. To change the current working directory to “tmp”, simply execute the given command:

cd /tmp


Step 3: After configuring the current working directory to “/tmp”, visit the Anaconda Archive and copy the link of the Linux x64 package suitable to your system, copy its link and provide the wget command to download to your system:

wget https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh


In case you haven’t installed the wget tool, then, simply execute the below command to install the wget tool:

sudo apt install wget

Step 4: Once the package is downloaded, run the checksum utility to check if the package is not corrupted and safe to install. You can do so by providing the package name to the “sha256sum” command as shown below:

sha256sum Anaconda3-2024.02-1-Linux-x86_64.sh


Step 6: Once all the preliminary steps are completed, then, install Anaconda by providing the package name to the “bash” command as shown below:

bash Anaconda3-2024.02-1-Linux-x86_64.sh


After that, press the Enter button to continue:

Then, read the license by simply pressing the Enter button until you reach the end of the policy, then, type yes to accept the license, and then press the Enter key to finish the installation of Anaconda:

Step 7: Once the installation is completed it is a must to activate the Anaconda working environment. You can do so by running the below command:

source ~/.bashrc


Step 8: Lastly, verify the Anaconda installation by running the given command below:

conda info

Alternatively, you can also verify the installation by checking its version by executing the below command:

conda --version

Conclusion

To install Anaconda on Ubuntu, first, change the download directory to the tmp directory using the cd /tmp command. Doing so will automatically delete the downloaded files after some time. Then, visit the official website of Anaconda, visit the archive section, copy the Linux x64 package link of Anaconda, and provide the wget command to download the Anaconda package. In case you don’t have the wget utility installed, you can simply install it by running the sudo apt install wget. Once the package is downloaded run the checksum utility using the sha256sum command alongside the package name. Lastly, use the bash command alongside the package name to install the anaconda on Ubuntu 24.04. Once the anaconda is installed you can verify its installation by running the conda –version command.

Keep visiting Linux World.