Install Anaconda on Ubuntu - Complete Step-by-Step Guide

This tutorial shows you how to Install Anaconda on Ubuntu, 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.

Table of Contents

🐍 Learn Python Programming
🔨 Python Basics
👉 Python Syntax
👉 Python Variables
👉 Python print()
👉 Python input()
👉 Python Constants
⚙️ Python Specifics
👉 Python List Replace - Simplified
👉 Create a GUI in Python
👉 Find out the Length of a String in Python
👉 Enum in Python
👉 Python Inline If/Else One-Line Statements
👉 Python xrange()
🏋️ Python Exercises
👉 Python Exercise Collection

How to install Anaconda on Ubuntu
How to install Anaconda on Ubuntu

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
Code language: Bash (bash)
How to Install Anaconda Ubuntu

Step 2 - Download Anaconda

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

cd /tmp/
Code language: Bash (bash)
How to Install Anaconda Ubuntu

And download the installer using wget. To make sure to download the latest installer go to https://repo.anaconda.com/archive/ and check what the latest version is, adjust the command manually:

wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
Code language: Bash (bash)
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:

md5sum Anaconda3-2022.05-Linux-x86_64.sh
Code language: Bash (bash)
Install Anaconda in Ubuntu

Step 3 - Install Anaconda on Ubuntu

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

bash Anaconda3-2022.05-Linux-x86_64.sh
Code language: Bash (bash)
Install Anaconda Ubuntu 18.04

Once you are 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
Code language: Bash (bash)
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
Code language: Bash (bash)
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
Code language: Bash (bash)
install anaconda ubuntu

And finally, we activate the environment.

source activate new_environment
Code language: Bash (bash)
install anaconda ubuntu easy

Wrapping Up

This is everything you need to do when you want to install Anaconda on Ubuntu. 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!

🐍 Learn Python Programming
🔨 Python Basics
👉 Python Syntax
👉 Python Variables
👉 Python print()
👉 Python input()
👉 Python Constants
⚙️ Python Specifics
👉 Python List Replace - Simplified
👉 Create a GUI in Python
👉 Find out the Length of a String in Python
👉 Enum in Python
👉 Python Inline If/Else One-Line Statements
👉 Python xrange()
🏋️ Python Exercises
👉 Python Exercise Collection

6 thoughts on “Install Anaconda on Ubuntu - Complete Step-by-Step Guide”

  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 Anaconda3-5.0.1-Linux-x86_64.sh -u". This time you should enter yes.

    Reply
  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!

    Reply

Leave a Comment

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

Share via
Copy link
Powered by Social Snap