How to Install Anaconda on CentOS 7
Install Anaconda on CentOS 7
Anaconda is the opensource package manager and distribution of Python and R Programming language. Anaconda is mainly designed for Data Science and Machine Learning and used for large-scale data processing, predictive analysis, and scientific computing. It offers over 1400 data packages in the free and paid form. It also ships with
conda command line utility. This tutorial outlines how to install Anaconda on CentOS 7.
Before you start to install Anaconda on CentOS 7. You must have the non-root user account on your system with sudo privileges.
1. Install Anaconda
The current latest stable version for Anaconda is
2018.12 at the time of writing this tutorial. You can check if the new version is available by visiting Anaconda Download Page.
First, navigate to
/tmp directory using the following command:
Download Anaconda installation script with curl typing:
curl -O https://repo.continuum.io/archive/Anaconda3-2018.12-Linux-x86_64.sh
Check data integrity of the script by running
The output should be like:
Make it sure above hash matches with hash available at Anaconda with Python 3 on 64 bit Linux page
Now start anaconda installation script running following command.
The output should be like:
Welcome to Anaconda3 2018.12 In order to continue the installation process, please review the license agreement. Please, press ENTER to continue
ENTER to continue. Again press
ENTER to scroll through the license of Anaconda. At last, you will be asked to accept the license terms.
Do you approve the license terms? [yes|no]
yes to continue. Then you will be asked to choose the installation directory.
Anaconda3 will now be installed into this location: /home/linux4one/anaconda3 - Press ENTER to confirm the location - Press CTRL-C to abort the installation - Or specify a different location below
You can press
ENTER to accept default location or you specify another location.
After completing installation following output will be displayed:
Installation finished. Do you wish the installer to prepend the Anaconda3 install location to PATH in your /home/linu4one/.bashrc ? [yes|no]
You want to use command line utility
conda then press
ENTER after this you will get output like below:
Appending source /home/linux4one/anaconda3/bin/activate to /home/linux4one/.bashrc A backup will be made to: /home/linux4one/.bashrc-anaconda3.bak For this change to become active, you have to open a new terminal. Thank you for installing Anaconda3!
You will be also asked to install VSCode Editor (Visual Studio Code). Now decide whether to install or not by typing yes or no.
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]
Source the ~/.bashrc file to activate Anaconda:
Now verify the installation typing following command.
The output should be like:
active environment : None user config file : /home/linuxize/.condarc populated config files : conda version : 4.5.4 conda-build version : 3.10.5 python version : 3.6.5.final.0 base environment : /home/linuxize/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/linuxize/anaconda3/pkgs /home/linuxize/.conda/pkgs envs directories : /home/linuxize/anaconda3/envs /home/linuxize/.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
2. Update Anaconda
Regularly update Anaconda to the latest version by using the following commands.
conda command line utility first running following command:
conda update conda
Confirm update by typing
Now update Anaconda typing following command.
conda update anaconda
Here also confirm update by typing
NOTE: Always regularly update Anaconda to latest version
3. Uninstall Anaconda
To uninstall anaconda you should run following commands.
First, remove the entire anaconda installation directory by using the following command.
rm -rf ~/anaconda3
sudo nano ~/.bashrc
Remove following line from the above file.
# added by Anaconda3 installer export PATH="/home/linux4one/anaconda3/bin:$PATH"
Finally, run the following command to remove hidden files and folders created during installation.
rm -rf ~/.condarc ~/.conda ~/.continuum
You have successfully learned how to install Anaconda on CentOS 7. If you have any queries regarding this then please don’t forget to comment below.
How to Copy, Cut, Paste in Vim or Vi
How to Install Mozilla Firefox on Ubuntu 18.04
How to Install Yarn on CentOS 7
How to Recursively Search all Files for a String in Linux
How to Install CMake on CentOS 8
How to Install Opera Browser on CentOS 8
How to Setup Passwordless SSH Login in Linux
How to Check if Ports are Open in Linux
How to Install Google Chrome on Fedora 29
17 Best Practical Examples of ls Command in Linux
How to Create Sudo User on Ubuntu
How to install Audacity on Ubuntu 18.04