Site icon NF AI

How to Install Anaconda3 on Ubuntu 20.04?

This blog contains the complete step by step installation guide for Anaconda3 installation on Ubuntu 20.04. This series will be helpful to start making a platform for machine learning and deep learning later. Let’s see “How to Install Anaconda3 on Ubuntu 20.04?”

What is Anaconda3 by the way?

This is open source distribution which allows you to perform Python/R data science and machine learning on a single machine. Developed for practitioners, it is the toolkit that equips you to work with thousands of open-source packages and libraries on single platform.

System requirements for Anaconda3

Step 1: Downloading Anaconda3

Open and download Anaconda3 Individual Edition, click here and then press Download button. After selecting Linux, I an going to download 64-Bit(x86) Installer. You could select others as per your system’s architect.

In my case, I have downloaded:

Anaconda3-2020.11-Linux-x86_64.sh

Step 2: Verify the distribution with sha256sum

We should verify file signatures using sha256sum just to sure either the downloaded version is by anaconda organisation or not.

Run the following code line in Ubuntu terminal without copying $ sign.

$ sha256sum  Anaconda3-2020.11-Linux-x86_64.sh

You will get such a result in your terminal after running above command

cf2ff493f11eaad5d09ce2b4feaa5ea90db5174303d5b3fe030e16d29aeef7de  Anaconda3-2020.11-Linux-x86_64.sh

Step 3: Running bash to install the files with .sh extension

Run the following command in Ubuntu terminal:

$ bash Anaconda3-2020.11-Linux-x86_64.sh

After running the above command, you will find that Anaconda Installer will ask you permissions several times to press ENTER or yes or [y/n], I would like you to press ENTER or yes or y to continue the installation with its default settings.

Step 4: Setting Anaconda3 for auto activation

In this step, you could set up Anaconda3 to automatically enable or disable it whilst you open Ubuntu terminal.

If you would prefer that conda’s base environment not be activated on start up of terminal then run the following:

$ conda config --set auto_activate_base false

If you would prefer to enable it automatically at startup of terminal then run the following:

$ conda config --set auto_activate_base true

Installation Accomplished

Now you could see the info about Anaconda3 by running the following command:

$ conda info
$ conda -V

Let us activate Anaconda3 by running:

source ~/.bashrc

For activation and deactivation of base environment

Run the following command to activate the base environment as:

$ conda activate base

For deactivation, run:

$ conda deactivate

Creating of any environment as per your requirements for projects

Suppose you want to create an environment other than base, let suppose for machine learning then you could run the following:

$ conda create --name machine_learning_env

To view the environment list, run:

$ conda env list

To activate machine _learning _env as created above, run:

$ conda activate machine_learning_env

Anaconda must be updated and upgraded at the end of installation

By running the following commands, Anaconda3 must be updated to get value able supporting libraries for development:

$ conda update conda

And follow the instructions for pressing ENTER or yes or [y/n], by default it should be always ENTER/yes/y.

Finally run:

$ conda upgrade anaconda

And follow the instructions during upgrading as mentioned above.

Video Tutorial for the whole installation of Anaconda3 in Ubuntu 20.04

Cheers!

Hence, the installation of Anaconda3 has been accomplished on Ubuntu 20.04. Enjoy coding/developing using Anaconda3.

Exit mobile version