Friday, 7 August 2015

Installing anaconda-python

Anaconda provides a python distribution that includes a range of python libraries for machine learning / statistics / data processing

I installed anaconda and various python libraries onto a new mint 17 install.
Downloaded anaconda from here and installed using
bash Anaconda-2.3.0-Linux-x86_64.sh

Installed into ~/anaconda and appended ~/anaconda/bin to ~/.bashrc

Updated anaconda:
conda update conda

The updated packages were:
    conda:      3.14.1-py27_0 --> 3.15.1-py27_0
    conda-env:  2.2.3-py27_0  --> 2.3.0-py27_0 
    pip:        7.0.3-py27_0  --> 7.1.0-py27_0 
    setuptools: 17.1.1-py27_0 --> 18.0.1-py27_0

Created a python3 environment
conda create --name py3 python=3.4
source activate py3
Forgot to install pandas etc with python 3.4:
conda remove --name py3 --all # can't do this as py3 is currently active

source deactivate
conda remove --name py3 --all
conda create --name py3 python=3.4 numpy pandas ipython
source activate py3

The last bit wasn't strictly necessary, I can add other libraries from anaconda into py3 using the following for scipy:
conda install --name py3 scipy

No comments:

Post a Comment