
Anaconda is the most popular, free and open-source distribution of Python and R Programming language. It is used for large-scale data processing, predictive analysis and scientific computing. The Anaconda distribution is used by over 15 million users and includes more than 1500 popular data-science packages. This tutorial describes how to install Anaconda on CentOS 7 system.
Prerequisites
Before you starting installation on CentOS 7, you should logged in as a non-root user with sudo privileges.
Installing Anaconda
The latest stable version of Anaconda is version 2019.03 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 CentOS system:
At first, navigate to /tmp
directory by typing:
cd /tmp
Now you can download Anaconda installation script using wget or curl command:
curl -O https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
It will take few minutes to complete download.
After that verify the Data Integrity of the Script using sha256sum
command:
sha256sum Anaconda3-2019.03-Linux-x86_64.sh
It should return output as below:
Output
09f53738b0cd3bb96f5b1bac488e5528df9906be2480fe61df40e0e0d19e3d48 Anaconda3-2019.03-Linux-x86_64.sh
Ensure that above hash should matches with hash available at Anaconda with Python 3 on 64 bit Linux page

Now run the Anaconda Installation Script to start Anaconda installation process:
bash Anaconda3-2019.03-Linux-x86_64.sh
Output should show as given below:
Output
Welcome to Anaconda3 2019.03
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
Press ENTER
key to continue and press ENTER
again to scroll through the license. At last, you will be asked to accept the license terms.
Output
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.
Output
Installation finished.
Do you wish the installer to prepend the Anaconda3 install location
to PATH in your /home/tecnstuff/.bashrc ? [yes|no]
If you want to use command line utility conda
then type yes
and press ENTER
after this you will get output like below:
Output
Appending source /home/tecnstuff/anaconda3/bin/activate to /home/tecnstuff/.bashrc
A backup will be made to: /home/tecnstuff/.bashrc-anaconda3.bak
For this change to become active, you have to open a new terminal.
Thank you for installing Anaconda3!
It will ask to you whether you would like to download and install Visual Studio Code Editor.
Anaconda is partnered with Microsoft! Microsoft VSCode is a streamlined
code editor with support for development operations like debugging, task
running and version control.
To install Visual Studio Code, you will need:
- Administrator Privileges
- Internet connectivity
Visual Studio Code License: https://code.visualstudio.com/license
Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]
If you want to install Visual Studio Code type yes
otherwise type no
.
To activate the Anaconda installation load the new PATH
environment variable:
source ~/.bashrc
Now verify the installation by typing:
conda info
active environment : None
user config file : /home/tecnstuff/.condarc
populated config files :
conda version : 4.5.4
conda-build version : 3.10.5
python version : 3.7.0.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
https://repo.anaconda.com/pkgs/free/linux-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/linux-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/linux-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /home/tecnstuff/anaconda3/pkgs
/home/tecnstuff/.conda/pkgs
envs directories : /home/tecnstuff/anaconda3/envs
/home/tecnstuff/.conda/envs
platform : linux-64
user-agent : conda/4.5.4 requests/2.18.4 CPython/3.6.5 Linux/4.15.0-22-generic centos/7 glibc/2.27
UID:GID : 1000:1000
netrc file : None
offline mode : False
Update Anaconda
To update Anaconda is very easy and simple. You can regularly update the Anaconda using below command.
At first, update the conda tool by typing:
conda update conda
You will be prompted to confirm update, type y
to proceed ahead.
Once conda is updated, proceed with the Anaconda update:
conda update anaconda
Same as with the previous command, when prompted, type y
to proceed. You should regularly update your Anaconda installation.
Uninstall Anaconda
You can uninstall Anaconda from your CentOS system using below steps:
Run the below command to remove the entire Anaconda installation directory:
rm -rf ~/anaconda3
After that you have to edit the ~/.bashrc
file and remove the Anaconda directory from the PATH environment variable:
# added by Anaconda3 installer
export PATH="/home/tecnstuff/anaconda3/bin:$PATH"
At last, run the following command to remove hidden files and folders which are created during installation.
rm -rf ~/.condarc ~/.conda ~/.continuum
Conclusion
You have downloaded and installed Anaconda on your CentOS 7 system. If you want more details about Anaconda you can learn at Official Getting started with conda guide.
If you have any question or suggestion, please leave comment below.
Leave a Reply