STEPS TO SETUP PYTHON ANACONDA IN CENTOS

Date posted: 27/03/2019

Introduction

Anaconda is a distribution for both Python and R, very popular among data scientists and machine learning coders. Today, we will see how to set up Anaconda in your CentOS server.

This tutorial will helpful in setting up Anaconda in both CentOS 6 or 7 environment.

Related image
Python and R

Step by step procedure are as follows:

  1. At initially, log into your server via SSH and create a directory ‘anac’ to install Anaconda packages at /root.

2. Let’s navigate to the directory:

cd /anac

3. Next, moreover we try to retrieve the latest download link from the official site itself. The link is attached below,

https://www.continuum.io/downloads

Click on ‘Linux’ and select the 64-bit installer for your preferred Python version 2.7/ 3,0 . Right click and then ‘Copy link address’.

4. After that, continue the SSH session and download the .sh file to your server.

wget https://repo.continuum.io/archive/Anaconda3-4.3.1-Linux-x86_64.sh

5. Once it’s done downloading, you can run the installer with the bash command.

bash Anaconda3-4.0.0-Linux-x86_64.sh

The installer will then begin and ask you a series of questions. Accepting the Terms and Conditions and select ‘Yes’ this will make running Conda commands a lot easier. Therefore, conda packages are now available in server.

For instance, Anaconda is ready to be used. In addition, here is the fine example for the commands to run.

conda update NAME_OF_PACKAGE

conda install NAME_OF_PACKAGE

Note: In other words, Conda’s repository isn’t that extensive, so if you can’t find something through conda install, try pip installation.

Tip #1: To install CentOS development tools, a comprehensive package of tools that will allow you to do basically anything needed for development on the system side.

yum groupinstall “Development tools”

Tip #2: Most importantly, do not try to use Python 2.7 in CentOS 7. It’s not compatible.

That’s it! Hope it’s useful.

Thanks for using pheonix solutions.

You find this tutorial helpful? Share with your friends to keep it alive.