How to Install Anaconda in Ubuntu 24.04 – Step-by-Step Installation Guide
If you're diving into data science, machine learning, or Python development, Anaconda is one of the most powerful tools you can use. It simplifies package management and environment configuration and comes preloaded with essential libraries and tools for scientific computing. This blog will walk you through how to install Anaconda in Ubuntu 24.04, based on the official steps outlined in Vultr’s installation guide.
Why Choose Anaconda?
Anaconda is a popular Python and R distribution used widely in data science, machine learning, and scientific computing. It includes over 7,500 open-source packages, along with tools like:
Jupyter Notebook for interactive data analysis
Spyder IDE for robust development
Conda for package and environment management
Installing Anaconda saves time when setting up environments and avoids the complexity of managing dependencies manually.
Prerequisites
Before you install Anaconda in Ubuntu 24.04, ensure the following:
You’re using Ubuntu 24.04 LTS
You have a non-root user with sudo privileges
At least 3 GB of free disk space
Stable internet connection
How to Install Anaconda in Ubuntu 24.04
Follow this simple step-by-step guide to get Anaconda running on your Ubuntu 24.04 system. These instructions are based on the official Vultr tutorial.
Step 1: Update Your System
Start by updating your system to ensure all packages are up to date:
sudo apt update && sudo apt upgrade -y
This helps avoid conflicts during installation.
Step 2: Download the Anaconda Installer
Use the wget command to download the latest version of the Anaconda installer:wget
This command downloads the Anaconda installer script to your working directory.
Step 3: (Optional) Verify the Installer
Although optional, verifying the integrity of the installer using SHA-256 is recommended:
sha256sum Anaconda3-2024.05-1-Linux-x86_64.sh
Compare the output hash with the one listed on the Anaconda official download page to ensure it's a valid file.
Step 4: Run the Installation Script
Now run the installer:
bash Anaconda3-2024.05-1-Linux-x86_64.sh
Press Enter to continue
Read through the license and type yes to accept
Choose the default installation location or specify a custom path
Step 5: Activate Anaconda
Once the installation is complete, activate Anaconda by running:
source ~/.bashrc
Verify the installation with:
conda --version
You should see the version of Conda installed.
What’s Next After Installation?
Here are a few helpful commands to get started with Anaconda:
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 help you manage your development environment, write and test code, and run analysis efficiently.
Final Thoughts
Installing Anaconda in Ubuntu 24.04 is a smart move if you're working with Python, data science, or machine learning. It provides a complete development environment with minimal setup and maximum flexibility. With tools like Jupyter, Conda, and hundreds of pre-installed packages, it makes coding and data analysis smoother and faster.
For more technical details and troubleshooting help, you can refer to the official guide at Vultr: Now that you know how to install Anaconda in Ubuntu 24.04, you’re ready to build powerful applications and work on high-performance data projects with ease!