top of page

専門職グループ

公開·580名のメンバー

Installing Anaconda on Ubuntu 24.04 – A Step-by-Step Guide for Developers and Data Scientists

If you're planning to work with Python for data science, machine learning, or scientific computing, installing Anaconda on Ubuntu 24.04 is one of the best decisions you can make. Anaconda is a powerful and open-source distribution of Python and R that simplifies package management and deployment. Whether you’re a student, developer, or researcher, this post will guide you through installing Anaconda on Ubuntu 24.04, using steps from the official Vultr guide

Why Install Anaconda?

Anaconda bundles together Python, R, and over 7,500 packages tailored for data analysis, artificial intelligence, and scientific research. It comes pre-installed with powerful tools like:

  • Jupyter Notebook – For interactive Python coding and data visualization

  • Spyder IDE – A scientific development environment

  • Conda – A package and environment manager that makes dependency management a breeze

By installing Anaconda on Ubuntu 24.04, you gain access to a controlled and scalable ecosystem that saves time and reduces compatibility issues when building projects.


System Requirements

Before we begin, make sure you have:

  • A system running Ubuntu 24.04 LTS

  • A non-root user with sudo privileges

  • At least 3 GB of free disk space

  • A stable internet connection

 Installing Anaconda on Ubuntu 24.04 – Step-by-Step

Follow these simple steps, adapted from the Vultr tutorial, to get Anaconda up and running.


Step 1: Update Your System

Open your terminal and make sure all packages are up to date:

sudo apt update && sudo apt upgrade -y


This ensures your system is ready for the installation.


Step 2: Download the Anaconda Installer

Use wget to download the latest Anaconda installer for Linux:


You can always check for updated versions at the Anaconda distribution page.


Step 3: (Optional) Verify the Installer

For security purposes, you may want to verify the file’s integrity:

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


Compare the output with the checksum available on the official download page.


Step 4: Run the Installer Script

Begin the installation process:

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


  • Press Enter to start the setup

  • Read and accept the license agreement by typing yes

  • Choose the default installation directory or specify a custom path


Step 5: Activate Anaconda

To activate the Anaconda installation, run:

source ~/.bashrc


Then, verify if it was installed successfully:

conda --version


If you see the version number, Anaconda is installed and ready to use.


 What to Do After Installing Anaconda

Once Anaconda is installed, here are some helpful commands to get started:

  • Create a new virtual environment:

conda create -n myenv python=3.12

conda activate myenv


  • Launch Jupyter Notebook:

jupyter notebook


  • Update all packages in the environment:

conda update --all


These features make it easy to manage multiple projects with different requirements on the same system.


 Final Thoughts

Installing Anaconda on Ubuntu 24.04 sets up a professional-grade Python environment that can handle everything from basic scripting to complex machine learning workflows. It’s ideal for both beginners and experienced users who want to avoid the hassle of manually installing packages and managing dependencies.

For a complete and visually detailed tutorial, be sure to visit Vultr’s official guide:Have questions, faced any errors, or want to share your experience? Drop a comment below and let’s help each other out!


閲覧数:9

©2021 by COMPASS。Wix.com で作成されました。

bottom of page