Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing, that aims to simplify package management and deployment. The distribution includes data-science packages suitable for Windows, Linux, and macOS.
To install anaconda we need to download the source from https://www.anaconda.com/. Then choose a suitable source for the operating system. Follow command bellow if using CentOS as the operating system.
[root@server ~]# cd /opt/ [root@server ~]# curl -O https://repo.anaconda.com/archive/Anaconda3-5.3.1-Linux-x86_64.sh
After downloading the source, follow the step to install anaconda. Anaconda will be installed on the default directory on /root. Run the source and follow the instruction wizard to install anaconda. This time all configuration will use default one.
[root@server ~]# bash Anaconda3-5.3.1-Linux-x86_64.sh
Press enter to start the installation.
type yes and press enter to accept the license agreement.
Press enter to set default installation location.
Type yes and press enter to add anaconda to the environment so anaconda command will be added to the system.
Microsoft VScode is not needed this time, type no and press enter.
The last step is to restart the session so anaconda command will be added to the system. Or just set the environment manually with command bellow.
[root@server ~]# source /root/.bashrc