Signup/Sign In

How to Install Anaconda on CentOS 7

Anaconda Python is a Python distribution that includes several tools for data scientists. These are Python packages as well. On Python, you may manually install them. However, Anaconda Python comes with them by default. This post will teach you how to install Anaconda Python on CentOS 7.

Anaconda Python is a Python distribution that may be downloaded.

  1. To begin, go to Anaconda Python's official website,
  2. On the upper right corner of the page, click the green "Download" icon. The following page should be seen.
  3. Now scroll down a little more to find the next section. Check to see whether "Linux" is chosen. To download Anaconda Python, click "Download." Depending on your needs, you may select Python 2.7 or Python 3.6. Choose Python 3.6 if you're uncertain.
  4. You should be prompted to save the file by your browser. "Save File" is selected, followed by "OK." The download process should now begin. It's a rather large file. As a result, the download may take some time to finish.

Verifying the downloaded file's Integrity: In this part, I'll teach you how to check the downloaded file's integrity.

This is a critical point. Because attempting to install software from a faulty file may fail the installation. It's also a security risk not to check the file's integrity. We should examine the checksum if one is provided on the program's website we are downloading. Given that Anaconda Python gives them, I believe it is prudent to use them.

Go to where you downloaded the file after it's finished downloading. It's the Downloads directory in my HOME directory in my situation.

To change the directory to HOME/Downloads, use the following command:

cd /Downloads cd /Downloads cd /Downloads cd

You can see Anaconda Python's installation file if I show the contents of the /Downloads directory. 'Anaconda3-5.0.1-Linux-x86' is the installation file at writing.

To produce a SHA256 hash of the downloaded file, use the following command:

Anaconda3-5.0.1-Linux-x86 $ sha256sum

Something along these lines should be seen.

Using any browser, go to The following page should be seen. This page provides the hashes of every Anaconda Python version that has ever been published. This page may be trusted since it is part of Anaconda Python's official documentation.

To validate the hash, just copy the one we produced before and look for it on this website. If there is a match, the hash is valid; otherwise, it is incorrect.

To bring up the search bar, use Ctrl+F. The search bar is shown at the bottom of the screen.

In the box, put the hash we created before. A match was identified, as shown by the green in the screenshot. As a result, the downloaded file is in good condition.

Anaconda Python Installation

We are now ready to install Anaconda Python. Open a terminal and go to the directory where Anaconda Python was downloaded.

To go to the Downloads directory, use the following command:

cd /Downloads cd /Downloads cd /Downloads cd

To start the installation, use the following command:

Anaconda3-5.0.1-Linux-x86 $ bash Anaconda3-5.0.1-Linux-x86

To continue the installation, press Enter>. You should get the following window after pressing Enter. This is Anaconda Python's licensing agreement. By hitting Enter or Space Bar, you may read the licensing agreement.

To continue, enter 'yes' and press 'Enter> when you conclude the licensing agreement.

Anaconda Python should now prompt you to where it will be installed. /home/YOUR USER/anaconda3 is the default location. You have the option to update it if you so choose. But I'm going to stick with the default. To continue, hit Enter> once you've finished.

The Anaconda Python installation should now begin. Because the installation file is somewhat large, it may take some time to complete.

Anaconda Python installer may ask whether you want to add Anaconda Python to CentOS 7 PATH variable after the installation. You may then run anaconda python without giving the whole installation path. This is something that the majority of people would want. To continue, enter 'yes' and click 'Enter>.

When the installation is finished, you should see something similar to this.

Inspection of the installation:

Open a new Terminal and perform the following commands to see whether Anaconda Python was successfully installed.

—version conda

That completes the installation of Anaconda Python on CentOS 7.

About the author:
Pradeep has expertise in Linux, Go, Nginx, Apache, CyberSecurity, AppSec and various other technical areas. He has contributed to numerous publications and websites, providing his readers with insightful and informative content.