Skip to main content

How to Install Anaconda on Ubuntu 20.04 LTS

How to Install Anaconda on Ubuntu 20.04 LTS

Introduction

In this article, you will learn how to install Anaconda on Ubuntu 20.04 LTS.

Anaconda is a free and open-source version of the Python and R programming languages designed specifically for use in data science. Its primary goal is to make the administration and deployment of packages more straightforward. Conda, the package management system used by Anaconda, is responsible for managing the various package versions. Conda does an analysis of the present environment before carrying out an installation in order to prevent the installation from interrupting other frameworks and packages.

The Anaconda distribution is pre-configured with more than 250 different packages already installed. In addition to the conda package and the virtual environment manager, PyPI allows for the installation of over 7500 more open-source packages that can be used. In addition to the command line interface, it also comes with a graphical user interface called Anaconda Navigator.

This interface is a graphical replacement for the command line interface. Users are able to run programmes and manage conda packages, environments, and channels without having to use command-line commands thanks to the Anaconda Navigator, which is part of the Anaconda distribution and comes standard with the package. Navigator is capable of conducting a search for packages, installing those packages in an environment, running those packages, and updating those packages.

Step 1: Update Your System

# apt update

Step 2: Download Anaconda

# wget https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh

command output

Step 3: Verify Installer hashes

After you have downloaded the installer, you can validate the hashes by running the sha256sum command as shown below.

# sha256sum Anaconda3-2021.11-Linux-x86_64.sh

output

Step 4: Install Anaconda

Next the last step, you will now be able to initiate the Anaconda installation by executing the bash Anaconda3-2021.11-Linux-x86 64.sh command, as outlined in the following paragraph. Several times throughout the installation process, it will ask for your confirmation on specific choices.

# bash Anaconda3-2021.11-Linux-x86_64.sh

The programme will greet you and welcome you to the installer before requesting that you read over and agree to the licence conditions. After you have done so, use the Enter button to proceed. Then press CTRL+C.

You are going to be prompted to confirm that you accept the conditions; if you do, type "yes."

You will be prompted by the system to use the default location for the installation.

If you want to continue or specify your location, press the Enter key. In the event that it is necessary, you are free to cancel the installation. Unless you have a specific need to modify the location of the installation, it is advised that you use the location that is specified during the installation.

Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no] type yes

install Anaconda on Ubuntu 20.04 LTS

Step 5: Activate the Installation

It is not necessary to restart your current terminal session in order for the modifications to take effect. To activate the installation while you're still in the same terminal session, all you have to do is execute the command source /.bashrc.

# source ~/.bashrc
# condo info

command output

Conclusion

Hopefully, you have learned how to install Anaconda on Ubuntu 20.04 LTS.

Thank You 🙂