Anaconda is the most popular, free and open-source distribution of Python and R Programming language. The Anaconda distribution is used by over 15 million users and includes more than 1500 popular data-science packages. It is used for large-scale data processing, predictive analysis and scientific computing. This tutorial describes how to install Anaconda on CentOS 8 system.
Before you start installation, you should logged in as a root or user with sudo privileges.
The latest stable version of Anaconda is version
2020.02 at the time of writing this article. You should visit Anaconda Download Page and check if there is a new version is available for download.
Follow the below steps to download and install Anaconda on you Debian system:
Step 1 – Download Anaconda
At first, navigate to
/tmp directory by typing:
wget –P ~/Downloads https://repo.anaconda.com/archive/Anaconda3.2020.02-Linux-x86_64.sh
It may take few minutes to complete download.
Step 2 – Verify Data Integrity
After that verify the data integrity of the Script using
It should return output as below:
Ensure that above hash should matches with hash available at Anaconda hashes page.
Step 3 – Install Anaconda Package
Now run the Anaconda installation script to start installation process:
It should return output as given below:
Welcome to Anaconda3 2020.02 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue
ENTER key to continue and press
ENTER again to scroll through the license. At last, you will be asked to accept the license terms.
Do you approve the license terms? [yes|no]
You should type
yes to accept the license and you will be asked to choose the installation directory.
Anaconda3 will now be installed into this location: /home/tecnstuff/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below
It’s better to set default location so just press
ENTER to confirm the location and continue installation process.
Once installation finishes, you’ll see the following output:
Preparing transaction: done Executing transaction: done installation finished. Do you wish the installer to initialize Anaconda3 by running conda init? [yes|no]
This adjusts the
PATH variable so that Anaconda works from any directory on your system. Type
Once the installation is finished, you will see thank you message.
==> For changes to take effect, close and re-open your current shell. <== If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false: conda config --set auto_activate_base false Thank you for installing Anaconda3!
To activate the Anaconda installation load the new
PATH environment variable:
Step 4 – Verify Installation
conda command to verify the installation:
active environment : base active env location : /home/tecnstuff/anaconda3 shell level : 1 user config file : /home/tecnstuff/.condarc populated config files : conda version : 4.8.2 conda-build version : 3.18.11 python version : 3.7.6.final.0 base environment : /home/tecnstuff/anaconda3 (writable) channel URLs : https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch ...
That’s it! Anaconda is installed on your CentOS system.
It’s very simple and easy to update Anaconda. You can regularly update the Anaconda using below command.
At first, update the
conda tool by typing:
conda update conda
It will prompt to confirm update, type
y to proceed ahead.
conda is updated, proceed with the Anaconda update:
conda update anaconda
Same as with the previous command, system prompts, type
y to proceed. It’s best practice to regularly update your Anaconda installation.
You can uninstall Anaconda from your CentOS system using below steps:
Anaconda includes a simple utility to remove the software from your system. Install the removal software by entering the following:
conda install anaconda-clean
It will prompt you to confirm, press y and hit Enter key.
anaconda-clean utility is installed, you can use it to remove Anaconda from your system completely:
--yes flag confirms for each deletion request. You can remove this option if you want to confirm file deletion manually.
It’s very simple process to download and install Anaconda on your CentOS 8 system. Learn more about Anaconda at Official conda guide.
If you have any question or feedback, please leave a comment below.