top of page

Faith Group

Public·509 members

A Step-by-Step Guide to Install Anaconda on Ubuntu 24.04

If you’re a developer, data scientist, or AI enthusiast, setting up a powerful and flexible environment is essential for productivity and efficiency. One of the most popular platforms for Python-based data science and machine learning is Anaconda. In this blog, we’ll walk you through how to Install Anaconda on Ubuntu 24.04 using the trusted guide available at Vultr’s official documentation.


What Is Anaconda?

Anaconda is a free and open-source distribution of Python and R for scientific computing. It comes bundled with popular packages like NumPy, Pandas, Scikit-learn, TensorFlow, and Jupyter Notebook. It also includes Conda, a powerful package and environment manager, allowing users to maintain separate environments for different projects and avoid dependency conflicts.


Why Use Anaconda on Ubuntu 24.04?

Ubuntu 24.04 is the latest LTS (Long-Term Support) version of Ubuntu, making it a stable and reliable operating system for development. Installing Anaconda on Ubuntu 24.04 allows users to take full advantage of the operating system's performance enhancements while managing data science tools in a structured and efficient way.

Prerequisites

Before starting the installation process, ensure:

  • You are using Ubuntu 24.04.

  • You have sudo privileges on your system.

  • Your system is up to date.

Update your system packages using:

sudo apt update && sudo apt upgrade -y



Step 1: Download the Anaconda Installer

First, open your terminal and download the latest version of the Anaconda installer script for Linux. According to the Vultr guide, you can run the following command:

wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh


This will download the installer script to your current directory.

Step 2: Verify the Installer (Optional but Recommended)

To ensure the file has not been corrupted or tampered with during the download, check its SHA-256 hash:

sha256sum Anaconda3-2024.02-1-Linux-x86_64.sh


Compare the result with the checksum provided on the official Anaconda website.

Step 3: Run the Installer

Now, execute the installer script:

bash Anaconda3-2024.02-1-Linux-x86_64.sh


You’ll be prompted to review and accept the license agreement. Once accepted, choose the destination folder for installation. The default path is usually suitable.


Step 4: Activate the Installation

After the installation is complete, you need to activate the Anaconda environment:

source ~/.bashrc


Now confirm that Conda is installed correctly:

conda --version


You should see the Conda version number, indicating a successful installation.


Step 5: Create and Manage Conda Environments

One of Anaconda’s greatest strengths is its ability to manage isolated environments. You can create a new environment with:

conda create --name myenv python=3.12


Activate the environment:

conda activate myenv


Install packages specific to that environment as needed:

conda install pandas matplotlib



Step 6: Launch Anaconda Navigator (Optional)

For users who prefer graphical interfaces, Anaconda includes Anaconda Navigator, a GUI for managing environments and launching applications like Jupyter Notebook and Spyder:

anaconda-navigator


If you’re using a desktop version of Ubuntu, this will open a window where you can access all major Anaconda tools without needing the terminal.


Conclusion

Installing Anaconda on Ubuntu 24.04 is a straightforward process that sets you up with a powerful toolkit for data science, machine learning, and scientific computing. By following the clear and detailed instructions provided in the Vultr documentation, users at any experience level can quickly install and begin using Anaconda on their Ubuntu systems.

Whether you're building models, analyzing data, or experimenting with AI, Anaconda provides the flexibility, power, and ease-of-use you need. Install it today and unlock your full development potential on Ubuntu 24.04.

 


7 Views

Members

bottom of page