Install Anaconda on Ubuntu 18.04 LTS: Complete Step-by-Step

This Install Anaconda on Ubuntu 18.04 LTS Tutorial will teach you how to install Anaconda, the Open Source distribution of the Python and R programming languages for Data Science and Machine Learning related Applications. The Packages are managed by the Package Management System Conda.

Let's get right started with the Tutorial.


How to install Anaconda on Ubuntu 18.04
Watch this video on YouTube.

Step 1 - Updating your System

As always, as a first, make sure your System is up to date.

We can do this by running:

sudo apt-get update -y && sudo apt-get upgrade -y

How to Install Anaconda Ubuntu 18.04


Step 2 - Download Anaconda

Next, we need to download Anaconda. First, we change into the Temp directory:

cd /tmp/

How to Install Anaconda Ubuntu


And download the installer using wget. To make sure to download the latest installer go to and check what the latest version is, adjust the command manually.


How to Install Anaconda Ubuntu


After the download is done, verify the MD5SUM and compare it with the one on the Website, just to be sure.


Install Anaconda in Ubuntu


Step 3 - Install Anaconda on Ubuntu 18.04

Time to install Anaconda. Press Enter to view the License Agreement, press Enter a couple of times to scroll through it.


Install Anaconda Ubuntu 18.04


Once at the end, type 'yes' to accept the Agreement. Confirm with Enter to install anaconda in the default directory.

How to Install Anaconda on Ubuntu


At the End of the Installation, you will get asked if you want to add the Anaconda3 install location to PATH. Answer with 'yes'.

Install Anaconda On Linux


Step 4 - Activating the Installation

Time to activate our installation.

source ~/.bashrc

Install Anaconda Ubuntu Step-by-Step


Step 5 - Testing the Installation

We can use the conda command to test if our installation & activation was successful.

conda list

Install Anaconda Ubuntu Easy


Step 6 - Creating a new Environment

Now we can create a new development environment. Hit y to proceed after entering the command below.

conda create – name new_environment python=3

install anaconda ubuntu 18.04


And finally, we activate the environment.

source activate new_environment

install anaconda ubuntu easy


Wrapping Up

This concludes this Install Anaconda on Ubuntu 18.04 Tutorial. You should now have a fully working Anaconda Environment, within a few simple steps. There will be more Anaconda Tutorials coming, so stay tuned for those. In the meanwhile, check out some other Open Source Tutorials!

6 thoughts on “Install Anaconda on Ubuntu 18.04 LTS: Complete Step-by-Step”

  1. I had the same problem. The problem is pressing Enter instead yes here:

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

    Try to update anaconda with "bash -u". This time you should enter yes.

  2. I got the same message but it was resolved when I ran the command:

    export PATH=/home//anaconda3/bin:$PATH

    Note: Remember to change accordingly!


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.