Installing Anaconda on Ubuntu 24.04 – A Detailed Setup Guide for Python Developers and Data Scientists
If you're working in Python development, data science, or machine learning, setting up your development environment properly is crucial. One of the most effective ways to manage Python packages and environments is through Anaconda. In this post, we’ll walk through the process of installing Anaconda on Ubuntu 24.04, with guidance adapted from the official Vultr tutorial.
Anaconda provides everything you need in one place — from powerful tools like Jupyter Notebook and Spyder to simplified environment management with Conda. This makes it a top choice for beginners and experts alike.
Why Choose Anaconda?
Before jumping into the installation steps, here’s why Anaconda is worth installing:
It includes over 7,500 Python and R packages for data science and scientific computing.
It comes preloaded with Jupyter Notebook, ideal for real-time coding and data visualization.
The Conda tool makes managing dependencies and environments easier and more reliable.
It allows you to maintain multiple isolated environments for different projects.
Anaconda saves time, avoids version conflicts, and sets up a professional-grade Python environment in minutes.
Prerequisites for Installing Anaconda on Ubuntu 24.04
Make sure your system is ready before you begin:
Running Ubuntu 24.04 LTS
A user with sudo privileges
Minimum 3 GB of free disk space
Stable internet connection
Terminal access (CLI)
Step-by-Step Guide: Installing Anaconda on Ubuntu 24.04
The following instructions are based on the official Vultr documentation.
Step 1: Update Your System
Start by updating your Ubuntu system packages to prevent compatibility issues:
sudo apt update && sudo apt upgrade -y
Step 2: Download the Anaconda Installer
Use wget to download the latest Anaconda installer for Linux:
This command fetches the installer script directly to your working directory.
Step 3: Verify the Installer (Optional)
To ensure the integrity of the installer, check the SHA-256 checksum:
sha256sum Anaconda3-2024.05-1-Linux-x86_64.sh
Compare the hash output with the one listed on Anaconda’s official site.
Step 4: Run the Installer Script
Begin the installation by running:
bash Anaconda3-2024.05-1-Linux-x86_64.sh
Press Enter to start the setup
Scroll through and accept the license agreement by typing yes
Choose the default installation location or enter a custom directory
Step 5: Activate Anaconda
Once the installation is complete, activate it using:
source ~/.bashrc
Check the version to verify it’s working:
conda --version
If the command returns the Conda version, the installation was successful.
Getting Started with Anaconda
Now that Anaconda is installed, here’s how to use it effectively:
Create a new environment:
conda create -n myenv python=3.12
conda activate myenv
Launch Jupyter Notebook:
jupyter notebook
Update Anaconda packages:
conda update --all
These commands allow you to manage packages and environments easily across different projects.
Conclusion
Installing Anaconda on Ubuntu 24.04 is a simple yet powerful step for setting up a Python-based development environment. It reduces manual setup time, handles package conflicts, and supports scalable project management. Whether you're building data models, running experiments, or developing web apps with Python, Anaconda provides the essential tools you need.
For more detailed visuals and support, refer to the full Vultr guide here: Have you recently installed Anaconda or faced issues during setup? Share your experience or questions below to help others in the community!



