top of page

Group

Public·143 members

A Complete Guide to Install Anaconda on Ubuntu 24.04

Anaconda is one of the most powerful and widely used platforms for data science, machine learning, and scientific computing. It simplifies package management and deployment by bundling essential tools like Python, R, Jupyter Notebook, and over 1,500 open-source packages. If you are running Ubuntu 24.04, this tutorial will guide you step-by-step on how to Install Anaconda on Ubuntu 24.04, based on the comprehensive instructions provided in Vultr's official guide.

Why Install Anaconda?

Anaconda is more than just a Python distribution. It provides:

  • Conda: A powerful package and environment manager.

  • Jupyter Notebook: A popular tool for interactive data analysis.

  • Preinstalled Libraries: Like NumPy, Pandas, Scikit-learn, and Matplotlib.

  • Easy Environment Management: Isolate your projects and dependencies.

Installing Anaconda on Ubuntu 24.04 gives you a reliable, consistent platform to manage all your data-related tasks.

Step 1: Update Ubuntu 24.04

Before installing any new software, it’s always a good idea to make sure your system is up to date. Open the terminal and run:

sudo apt update && sudo apt upgrade -y


This ensures all your packages are current, helping avoid conflicts during installation.

Step 2: Download the Anaconda Installer

The next step is to download the latest Anaconda installer for Linux. You can do this using wget:

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


This command will download the Anaconda installer script to your current directory.

Step 3: Verify the Installer (Optional but Recommended)

To ensure the installer is authentic and hasn’t been tampered with, check the SHA-256 checksum:

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


Compare the output with the official checksum available on Anaconda’s website. This step helps guarantee the integrity and security of the installation.

Step 4: Run the Installation Script

Once the download is complete, run the installer script:

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


Follow the prompts:

  • Review and accept the license agreement by typing yes.

  • Choose the installation directory (default is usually fine).

  • Wait for the installation to complete.


Step 5: Activate Anaconda

After installation, you need to activate Anaconda by updating your shell environment. Run:

source ~/.bashrc


Now, check if Anaconda is installed properly by typing:

conda --version


This should return the installed version of Conda, confirming a successful setup.


Step 6: Create a New Conda Environment (Optional)

Creating environments is a great way to avoid package conflicts between projects. Here’s how you can create and activate a new environment:

conda create --name myenv python=3.12

conda activate myenv


Now you can install any libraries you need in this isolated space.


Step 7: Launch Anaconda Navigator (Optional GUI)

Anaconda comes with a graphical interface called Anaconda Navigator, which makes it easier to manage environments and packages:

anaconda-navigator


This will launch a user-friendly GUI for managing your projects and accessing tools like Jupyter Notebook, Spyder, and more.

Final Thoughts

Learning how to Install Anaconda on Ubuntu 24.04 can greatly streamline your data science and Python development workflows. It offers a robust set of tools for managing environments, running complex computations, and visualizing data. Thanks to the detailed and beginner-friendly instructions provided in Vultr’s guide, the installation process is smooth and reliable.

Whether you're a student, researcher, or developer, Anaconda provides everything you need in one powerful package. Start building smarter and faster with Anaconda on Ubuntu 24.04 today!


About

Welcome to the group! You can connect with other members, ge...

Members

  • Facebook
  • Twitter
  • LinkedIn

©2022 by Crafting Visual.

bottom of page