How to Install Anaconda on Ubuntu – Complete Step-by-Step Guide for 2024 Users
Whether you're a beginner in Python development or a seasoned data scientist, Anaconda is a game-changer when it comes to managing packages, environments, and tools for data analysis, machine learning, and scientific computing. If you're running a Linux system, this guide will walk you through how to install Anaconda on Ubuntu, with reference to the official instructions provided by Vultr:
What is Anaconda?
Anaconda is a free and open-source Python and R distribution that includes more than 7,500 pre-installed data science and machine learning packages. It also comes with tools like:
Conda – for environment and package management
Jupyter Notebook – for interactive development and data visualization
Spyder IDE – a lightweight scientific development environment
Using Anaconda simplifies the process of managing dependencies and creating isolated environments for different projects, which is especially important in large-scale or collaborative development work.
System Requirements Before You Install Anaconda on Ubuntu
Before starting the installation process, make sure your system meets the following requirements:
Operating System: Ubuntu 24.04 or other supported versions
Privileges: A non-root user with sudo access
Disk Space: At least 3 GB of available storage
Internet Connection: Required to download the installer and packages
Step-by-Step Guide to Install Anaconda on Ubuntu
The steps below are based on the official Vultr documentation, customized to give you an easy walkthrough.
Step 1: Update Your System
Open the terminal and update your system packages:
sudo apt update && sudo apt upgrade -y
Keeping your system up to date ensures a smooth installation.
Step 2: Download the Anaconda Installer
Use the wget command to download the latest version of Anaconda:
This command will download the installer script to your current directory.
Step 3: (Optional) Verify the Installer
You can use sha256sum to verify the file’s integrity:
sha256sum Anaconda3-2024.05-1-Linux-x86_64.sh
Compare the hash output with the one listed on the official Anaconda download page to ensure the download was successful.
Step 4: Run the Installer Script
Run the installation script:
bash Anaconda3-2024.05-1-Linux-x86_64.sh
Press Enter to continue
Type yes to agree to the license
Choose the default install path (usually in your home directory)
Step 5: Activate Anaconda
Once installation is complete, activate it with:
source ~/.bashrc
Confirm the installation by checking the Conda version:
conda --version
Post-Installation: What You Can Do
Once Anaconda is installed, you're ready to start developing! Here are a few quick-start tips:
Create a new environment:
conda create -n myenv python=3.12
conda activate myenv
Launch Jupyter Notebook:
jupyter notebook
Update all packages:
conda update --all
These features allow you to isolate dependencies, organize projects, and collaborate effectively.
Final Thoughts
Installing Anaconda on Ubuntu provides a stable and scalable foundation for Python-based projects. With built-in tools for development, data visualization, and environment management, Anaconda eliminates many common challenges faced in programming and data science workflows.
If you’d like a detailed, image-supported guide, check out the full tutorial from Vultr here. Have you tried installing Anaconda on your Ubuntu system recently? Share your experience, tips, or troubleshooting questions with the community below!
