Anaconda is the most popular open-source distribution of Python and R Programming language. It is use for large-scale data processing, predictive analysis and scientific computing. This tutorial describes how to install Anaconda on Ubuntu 20.04 Focal Fossa.
The Anaconda distribution is used by over 15 million users and includes more than 1500 popular data-science packages.
Make sure you are login as a root or user with sudo privileges.
Install Anaconda on Ubuntu
2020.02 is the latest version at the time of writing this article. Visit Anaconda Download Page and check if there is a new version of Anaconda for Python 3 available to download.
Perform the following steps to download and install Anaconda on you Ubuntu system:
Step 1 – Download Anaconda
/tmp directory by typing:
wget –P ~/Downloads https://repo.anaconda.com/archive/Anaconda3.2020.02-Linux-x86_64.sh
It may take sometime to complete the download.
Step 2 – Verify Data Integrity
After that verify the data integrity of the Script using
It should return output as below:
Make sure that above hash should matches with hash available at Anaconda hashes page.
Step 3 – Install Anaconda Package
Next, run the Anaconda installation script to start installation process:
It will show output as given below:
Welcome to Anaconda3 2020.02 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue
ENTER key to continue and press
ENTER again to scroll through the license. At last, you will be ask to accept the license terms.
Do you approve the license terms? [yes|no]
You should type
yes to accept the license and you will be asked to choose the installation directory.
Anaconda3 will now be installed into this location:
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
It’s better to set default location so just press
ENTER to confirm the location and continue installation process.
Once installation finishes, you’ll see the following output:
Preparing transaction: done Executing transaction: done installation finished. Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no]
This adjusts the
PATH variable so that Anaconda works from any directory on your system. Type
Once the installation is finished, you will see thank you message.
==> 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!
To activate the Anaconda installation load the new
PATH environment variable:
Step 4 – Verify Installation
conda command to verify the installation:
active environment : base
active env location : /home/tecnstuff/anaconda3
shell level : 1
user config file : /home/tecnstuff/.condarc
populated config files :
conda version : 4.8.2
conda-build version : 3.18.11
python version : 3.7.6.final.0
base environment : /home/tecnstuff/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
That’s it! Anaconda is installed on your Ubuntu 20.04 system.
It’s very straightforward to update Anaconda. You can regularly update the Anaconda using below command.
At first, update the
conda tool by typing:
conda update conda
It will prompt to confirm update, type
y to proceed ahead.
conda is updated, proceed with the Anaconda update:
conda update anaconda
Same as with the previous command, system prompts, type
y to proceed. It’s best practice to regularly update your Anaconda installation.
You can uninstall Anaconda from your Ubuntu 20.04 system using below steps:
Anaconda includes a simple utility to remove the software from your system. Install the removal software by entering the following:
conda install anaconda-clean
It will prompt you to confirm, press y and hit Enter key.
anaconda-clean utility is installed, you can use it to remove Anaconda from your system completely:
--yes flag confirms for each deletion request. You can remove this option if you want to confirm file deletion manually.
It’s very simple process to download and install Anaconda on your Ubuntu 20.04 system. Learn more about Anaconda at Official conda guide.
If you have any question or feedback, please leave a comment below.