FedoraRHEL Based

How To Install Anaconda on Fedora 40

Install Anaconda on Fedora 40

In this tutorial, we will show you how to install Anaconda on Fedora 40. Anaconda is a powerful and popular open-source distribution of Python and R programming languages, designed specifically for scientific computing, data analysis, and machine learning. It provides a comprehensive ecosystem of tools and libraries that simplify package management and streamline the development process.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of Anaconda on a Fedora 40.

Prerequisites

Before we dive into the installation process, ensure that you have the following prerequisites in place:

  • A server running one of the following operating systems: Fedora 40.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • You will need access to the terminal to execute commands. Fedora 40 provides the Terminal application for this purpose. It can be found in your Applications menu.
  • A stable internet connection to download the necessary packages.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Anaconda on Fedora 40

Step 1. Update the System.

It’s a good practice to update your system to the latest packages. Open a terminal and run:

sudo dnf clean all
sudo dnf update

These commands will fetch and install the latest updates for your Fedora 40 system, ensuring that you have access to the most recent bug fixes, security patches, and performance improvements.

Step 2. Installing Anaconda on Fedora 40.

To begin the installation process, we need to download the Anaconda installer script from the official website. Follow these steps:

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

Before proceeding with the installation, it’s crucial to verify the integrity of the downloaded installer script to ensure it hasn’t been corrupted during the download process. Anaconda provides a cryptographic hash that we can use to validate the installer. Run the following command to generate the SHA-256 checksum of the installer:

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

Compare the generated checksum with the one provided on the Anaconda download page. If they match, the installer is valid and you can proceed with the installation.

Now that we have verified the integrity of the installer, let’s run it to start the installation process:

chmod +x Anaconda3-2023.03-1-Linux-x86_64.sh

Launch the installer by executing the script:

./Anaconda3-2023.03-1-Linux-x86_64.sh

The installer will display the Anaconda End User License Agreement (EULA). Press Enter to scroll through the EULA, and type “yes” when prompted to accept the terms and conditions.

When asked whether to initialize Anaconda by running conda init, type “yes” to allow Anaconda to modify your shell configuration files.

The installer will now proceed to install Anaconda on your Fedora 40 system. This process may take several minutes, depending on your internet connection speed and system performance.

Verify that Anaconda is installed and activated by running the following command:

conda info

If Anaconda is properly installed and activated, you should see information about your Anaconda installation, such as the version number, installation path, and available environments.

Step 3. Creating and Managing Environments.

One of the key features of Anaconda is its ability to create and manage isolated environments for different projects. Each environment can have its own set of packages and dependencies, ensuring that projects don’t interfere with each other. Here’s how you can create and manage environments using Anaconda:

  • To create a new environment, use the following command:
conda create --name myenv
  • To activate an environment, use the following command:
conda activate myenv
  • To deactivate the current environment and return to the base environment, use the following command:
conda deactivate
  • To list all the available environments, use the following command:
conda env list
  • To install packages within an active environment, use the following command:
conda install package_name

Step 4. Troubleshooting Tips.

If you encounter any issues during the installation process or while using Anaconda, here are a few troubleshooting tips:

  • If the installer fails to download or run, ensure that you have a stable internet connection and sufficient disk space.
  • If you encounter permission errors, make sure you have the necessary permissions to install software on your Fedora 40 system.
  • If you experience issues with conda commands, try running conda update conda to update Anaconda to the latest version.
  • If you have multiple Python installations on your system, ensure that Anaconda is set as the default Python environment by modifying your shell configuration files.

Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing Anaconda on your Fedora 40 system. For additional or useful information, we recommend you check the official Anaconda website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button