How to Install Anaconda on Ubuntu 20.04

Install Anaconda on Ubuntu 20.04

In this article, we will have explained the necessary steps to install and configure Anaconda on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Anaconda is the most popular, free, and open-source distribution of Python and R Programming language. Anaconda is mainly designed for Data Science and Machine Learning and used for large-scale data processing, predictive analysis, and scientific computing. It offers over 1400 data packages in the free and paid form. It also ships with conda command-line utility.

Install Anaconda on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

Step 2. Install Anaconda on the Ubuntu system.

Download and install the latest version of Anaconda through the official web source:

wget -P /tmp

Next, the checksum is a security tool used to verify the authenticity and integrity of a downloaded script:


The output should be like:


Once upon, run the script to start the installation process:

bash /tmp/

Press enter and type ‘yes’ to grant permission and continue the process.

To activate the Anaconda installation, you can either close and re-open your shell or load the new PATH environment variable into the current shell session by typing:

source ~/.bashrc

To verify the installation of your package, use the conda a command to display the verification information:

conda info

Updating the Anaconda is a pretty straight forward process. Open your terminal and enter:

conda update --all

That’s all you need to do to install the Anaconda on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Anaconda, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.