• Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate
TecNStuff
Menu
  • Home
  • Linux
  • Ubuntu
  • Debian
  • CentOS
  • Linux Commands
  • About Us
  • Donate

How to Install Anaconda on Ubuntu 20.04

Written by Admin, Updated On May 7, 2020
anaconda, ubuntu
How to Install Anaconda on Ubuntu 20.04

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.

Prerequisites#

Make sure you are login as a root or user with sudo privileges.

Install Anaconda on Ubuntu#

Anaconda version 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.

anaconda-download-2020-02

Perform the following steps to download and install Anaconda on you Ubuntu system:

Step 1 – Download Anaconda#

Navigate to /tmp directory by typing:

cd /tmp

Now you can download Anaconda installation script using wget or curl command:

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 sha256sum command:

sha256sum Anaconda3.2020.02-Linux-x86_64.sh

It should return output as below:

2b9f088b2022edb474915d9f69a803d6449d5fdb4c303041f60ac4aefcc208bb

Make sure that above hash should matches with hash available at Anaconda hashes page.

anaconda-hashes

Step 3 – Install Anaconda Package#

Next, run the Anaconda installation script to start installation process:

bash Anaconda3-2020.02-Linux-x86_64.sh

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

Press 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:
/home/tecnstuff/anaconda3
    - 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 yes, then Enter.

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:

source ~/.bashrc

Step 4 – Verify Installation#

Use conda command to verify the installation:

conda info
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
                       https://repo.anaconda.com/pkgs/main/noarch
     ...

That’s it! Anaconda is installed on your Ubuntu 20.04 system.

Update Anaconda#

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.

Once 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.

Uninstall Anaconda#

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.

Once the anaconda-clean utility is installed, you can use it to remove Anaconda from your system completely:

anaconda-clean ––yes

The --yes flag confirms for each deletion request. You can remove this option if you want to confirm file deletion manually.

Conclusion#

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.

If our content helps you, please consider buying us a coffee

Thank you for your support.

Share On
Share on Facebook
Share on Twitter
Share on Reddit
Share on Tumblr
 Previous Article How to Install Visual Studio Code on CentOS 8
Next Article   How to Install OpenCV on CentOS 8 Server

Related Posts

  • How to Install Apache, MySQL, PHP (LAMP) on Ubuntu 22.04

    How to Install LAMP on Ubuntu 22.04

    March 20, 2023
  • How to Install LEMP Stack on Ubuntu 22.04

    How to Install LEMP Stack on Ubuntu 22.04

    March 18, 2023
  • How to Install Memcached on Ubuntu 22.04

    How to Install Memcached on Ubuntu 22.04

    March 16, 2023

2 Comments

  1. Joe Reply
    July 15, 2020 at 9:22 am

    I’m still learning Linux, but I followed these instructions and successfully installed and verified the installation of Anaconda. My question (which may be naive) is how and where do I open the program? I use Anaconda on Mac, so of course I just click the icon and multiple platforms (Jupyter Notebook, Spyder, etc.) open up, and that’s what I was expecting in Ubuntu as well. Is that not the case?

    Please advise!

    • Admin Reply
      July 15, 2020 at 4:16 pm

      Open a terminal window and type anaconda-navigator

Leave a Reply Cancel reply

DigitalOcean Referral Badge

Popular Posts

  • How to Install Microsoft Edge Browser on Ubuntu 22.04
    How to Install Microsoft Edge Browser on Ubuntu 22.04 March 14, 2023
  • How to Install Ruby on Ubuntu 22.04 LTS
    How to Install Ruby on Ubuntu 22.04 LTS February 27, 2023
  • How to Install LEMP Stack on Ubuntu 22.04
    How to Install LEMP Stack on Ubuntu 22.04 March 18, 2023
  • How to Install Set Up Apache Virtual Hosts on Ubuntu 22.04
    How to Set Up Apache Virtual Hosts on Ubuntu 22.04 March 2, 2023
  • How to Install MariaDB on Debian 11 Bullseye
    How to Install MariaDB on Debian 11 Bullseye March 8, 2023
© 2020 TecNStuff All rights reserved. This website is using and storing cookies on your browser. By using this website you agree our Privacy Policy.  Follow us -  Twitter | Facebook