How to Install Anaconda on Ubuntu 18.04


Install Anaconda on Ubuntu 18.04
Anaconda is the opensource package manager and 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. This tutorial outlines how to install Anaconda on Ubuntu 18.04.

Before you start to install Anaconda on Ubuntu 18.04. You must have the non-root user account on your system with sudo privileges.

Install Anaconda
The current latest stable version for Anaconda is 2019.03 at the time of writing this tutorial. You can check if the new version is available by visiting Anaconda Download Page.

First, navigate to /tmp directory using the following command:

cd /tmp

Download Anaconda installation script with curl typing:

curl -O

Check data integrity of the script by running sha256sum command.

The output should be like:


Make it sure above hash matches with hash available at Anaconda with Python 3 on 64 bit Linux page

Now start anaconda installation script running following command.

The output should be like:

Welcome to Anaconda3 2019.03

In order to continue the installation process, please review the license
Please, press ENTER to continueCopy
Now press ENTER to continue. Again press ENTER to scroll through the license of Anaconda. At last, you will be asked to accept the license terms.

Do you approve the license terms? [yes|no]

Type yes to continue. Then 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

You can press ENTER to accept the default location or you specify another location.

After completing installation following output will be displayed:

Installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/linu4one/.bashrc ? [yes|no]

You want to use command line utility conda then press ENTER after this you will get output like below:

Appending source /home/linux4one/anaconda3/bin/activate to /home/linux4one/.bashrc
A backup will be made to: /home/linux4one/.bashrc-anaconda3.bak

For this change to become active, you have to open a new terminal.

Thank you for installing Anaconda3!

You will be also asked to install VSCode Editor (Visual Studio Code). Now decide whether to install or not by typing yes or no.

Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.

To install Visual Studio Code, you will need:
    - Administrator Privileges
    - Internet connectivity

Visual Studio Code License:

Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]

Source the ~/.bashrc file to activate Anaconda:

source ~/.bashrc

Now verify the installation typing following command.

conda info

The output should look like:

active environment : None
user config file : /home/linuxize/.condarc
populated config files :
    conda version : 4.5.4
conda-build version : 3.10.5
    python version :
base environment : /home/linuxize/anaconda3  (writable)
    channel URLs :
    package cache : /home/linuxize/anaconda3/pkgs
envs directories : /home/linuxize/anaconda3/envs
        platform : linux-64
        user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-22-generic ubuntu/18.04 glibc/2.27
            UID:GID : 1000:1000
        netrc file : None
    offline mode : False


thanks for sharing this amazing information!