How To Install Anaconda on Fedora 39
In this tutorial, we will show you how to install Anaconda on Fedora 39. In the realm of data science, one tool has emerged as a game-changer: Anaconda. This open-source distribution of Python and R has revolutionized the way data scientists manage packages and deploy software. With its robust collection of over 1500 data science packages, Anaconda has become an indispensable tool for data scientists worldwide.
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 the Anaconda on a Fedora 39.
Prerequisites
Before diving into the installation process, let’s ensure that you have everything you need:
- A server running one of the following operating systems: Fedora 39.
- 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 39 provides the Terminal application for this purpose. It can be found in your Applications menu.
- A network connection or internet access to download the Anaconda packages.
- A
non-root sudo user
or access to theroot user
. We recommend acting as anon-root sudo user
, however, as you can harm your system if you’re not careful when acting as the root.
Install Anaconda on Fedora 39
Step 1. Before installing any new software, it’s a good practice to update the system packages. This ensures that your system is up-to-date, reducing potential conflicts and enhancing security. Open the terminal and run the following command:
sudo dnf clean all sudo dnf update
Step 2. Installing Anaconda on Fedora 39.
With your system updated, the next step is to download the Anaconda installer. You can do this using the curl
command, which transfers data from or to a server. Run the following command in your terminal:
curl -O https://repo.anaconda.com/archive/Anaconda3-2023.09-0-Linux-x86_64.sh
This command downloads the Anaconda installer from the official Anaconda repository. The -O
option tells curl
to save the downloaded file with its original name.
Data integrity is paramount when downloading software. Verifying the SHA256 checksum of the downloaded installer ensures that the installer is not corrupted and hasn’t been tampered with. Run the following command:
sha256sum Anaconda3-2023.09-0-Linux-x86_64.sh
This command calculates and displays the SHA256 checksum of the installer. You can compare this with the checksum provided on the Anaconda website to ensure they match.
Now that you’ve verified the integrity of the installer, it’s time to run it. Use the following command:
bash Anaconda3-2023.09-0-Linux-x86_64.sh
This command starts the Anaconda installer. The installer will guide you through the installation process.
During the installation process, you’ll be prompted to review and accept the license agreement. It’s important to read through this agreement to understand the terms of use for Anaconda. Once you’ve accepted the agreement, the installation will proceed.
After the installation is complete, it’s important to verify that Anaconda was installed correctly. Close and reopen the terminal, then run:
conda list
If Anaconda is installed correctly, this command will display a list of installed packages. Seeing this list confirms that Anaconda is ready to use.
Step 3. Troubleshooting Common Issues.
Even with careful preparation, you may encounter issues during the installation process. This section provides solutions to common problems.
- Issue: The
curl
command is not found.
Solution: Installcurl
using the commandsudo dnf install curl -y
. - Issue: The SHA256 checksum does not match the one provided on the Anaconda website.
Solution: This could indicate a corrupted or tampered installer. Delete the installer usingrm Anaconda3-2023.09-0-Linux-x86_64.sh
and repeat Step 2. - Issue: The
conda
command is not found after installation.
Solution: This could be due to the PATH not being set correctly. Add Anaconda to your PATH by addingexport PATH=/home/yourusername/anaconda3/bin:$PATH
to your.bashrc
or.bash_profile
file.
Congratulations! You have successfully installed Anaconda. Thanks for using this tutorial for installing Anaconda on your Fedora 39 system. For additional or useful information, we recommend you check the official Anaconda website.