Anaconda is the leading open data science platform powered by Python. The open source version of Anaconda is a high performance distribution of Python and R and includes over 100 of the most popular Python, R and Scala packages for data science.
It is better to set the path only when you intend to use anaconda, for example, in a wrapper script
Installing Anaconda Within Your Home Directory
Download the installer from https://repo.continuum.io/archive/ or copy the install from /share/Source/RHEL75Anaconda/
. The latest versions can be downloaded from https://www.anaconda.com/distribution/
All versions can be downloaded from https://repo.continuum.io/archive
For Python 3.6.5, https://repo.continuum.io/archive/Anaconda3-5.2.0-Linux-x86_64.sh
For Python 2.7.15, https://repo.continuum.io/archive/Anaconda2-5.2.0-Linux-x86_64.sh
In your terminal window type one of the below and follow the instructions:
Python 3.6.5 version,
bash Anaconda3-5.2.0-Linux-x86_64.sh
Python 2.7.15 version
bash Anaconda2-5.2.0-Linux-x86_64.sh
More details about installing, go to https://docs.anaconda.com/anaconda/install/linux/
Do NOT add the path to your anaconda installation to your .bashrc
or .bash_profile
, do so may cause your graphics session to fail! It is better to set the path only when you intend to use anaconda, for example, in a wrapper script
or in a shell,
For Python 2.7.15,
export PATH=/home/username/anaconda2/bin:$PATH
For Python 3.6.5,
export PATH=/home/username/anaconda3/bin:$PATH
where, username
is your username.
To verify you installation type the following command,
conda list
For more information about using Anaconda go to https://docs.continuum.io/anaconda/
Example - Wrapper Script for Anaconda3
Create a text file called myconda
, that contains the following,
#!/bin/bash
#
# MyConda Wrapper Script
#
export PATH=$HOME/anaconda3/bin:$PATH
bash
Then via the command line change the file to an executable by executing the following command,
chmod 755 myconda
Then copy the myconda script to your Wrappers
directory.
Now every time you wish to use Anaconda3 simply execute the command,
myconda
To load the Anaconda3 environment.