Main Navigation

Secondary Navigation

Page Contents

Contents

Installing Python Modules

Python provides a huge number of modules in various versions. You may install them in your HOME directory. Most of them are only used by one person in this particular version.

The following examples illustrate how to compile and install python modules in your HOME dirctory:

(Be aware that the license for the Intel compiler allows only usage by members of TU Kaiserslautern)

Numpy 1.6.1

module load intel/latest

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/numpy-1.6.1.tar.gz
cd numpy-1.6.1
python setup.py config --compiler=intelem --fcompiler=intelem build_clib \
                       --compiler=intelem --fcompiler=intelem build_ext \
                       --compiler=intelem --fcompiler=intelem install --user

Scipy 0.10.1

module load intel/latest

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/scipy-0.10.1.tar.gz
cd scipy-0.10.1
python setup.py config --compiler=intelem --fcompiler=intelem build_clib \
                       --compiler=intelem --fcompiler=intelem build_ext \
                       --compiler=intelem --fcompiler=intelem install --user

SciKit-Learn 0.10

module load intel/latest

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/scikit-learn-0.10.tar.gz
cd scikit-learn-0.10
python setup.py config --compiler=intelem --fcompiler=intelem build_clib \
                       --compiler=intelem --fcompiler=intelem build_ext \
                       --compiler=intelem --fcompiler=intelem install --user

numexpr 1.4.2

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/numexpr-1.4.2.tar.gz
cd numexpr-1.4.2
python setup.py build
python setup.py install --user

Cython 0.16

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/Cython-0.16.tar.gz
cd Cython-0.16/
python setup.py build
python setup.py install --user

Tables 2.3.1

SRC=$HOME/src
if [ ! -e $SRC ]; then mkdir $SRC ; fi

cd $SRC
tar xf /cluster/downloads/tables-2.3.1.tar.gz
cd tables-2.3.1
python setup.py build
python setup.py install --user