This version is outdated by a newer approved version.DiffThis version (2022/06/20 09:01) was approved by msiegel.

This is an old revision of the document!


Some users require python versions, that differ from those on the system installed.

basic install

python install:

wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz

./configure --prefix=/opt/sw/python/2.7.5

setuptools for easy_install:

wget https://pypi.python.org/packages/source/s/setuptools/setuptools-1.1.tar.gz --no-check-certificate
/opt/sw/python/2.7.5/bin/python setup.py build 
/opt/sw/python/2.7.5/bin/python setup.py install --prefix=/opt/sw/python/2.7.5

.bashrc:

export PATH=/opt/sw/python/2.7.5/bin:$PATH
export PYTHONPATH=/opt/sw/python/2.7.5

packages

Installation of numpy with INTEL MKL libraries support on VSC

If you with to install numpy with MKL yourself, relevant files are:

For using already installed versions of numpy the PYTHONPATH variable in .bashr has to set to point to the right version; install directory is /opt/sw/numpy von all clusters:

export PYTHONPATH=/opt/sw/numpy/1.6.2/lib64/python2.4/site-packages:$PYTHONPATH

or

export PYTHONPATH=/opt/sw/numpy/1.7.0/lib64/python2.6/site-packages:$PYTHONPATH
Scipy with python2.7

Installation instructions from http://software.intel.com/en-us/articles/numpyscipy-with-intel-mkl

wget http://downloads.sourceforge.net/project/scipy/scipy/0.13.0b1/scipy-0.13.0b1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fscipy%2Ffiles%2F&ts=1377760024&use_mirror=switch
python2.7 setup.py config --compiler=intelem --fcompiler=intelem build_clib --compiler=intelem --fcompiler=intelem build_ext \
--compiler=intelem --fcompiler=intelem install --prefix=/opt/sw/scipy/0.13.0b1

.bashrc:

export PYTHONPATH=/opt/sw/scipy/0.13.0b1/lib/python2.7/site-packages:$PYTHONPATH
Pypar with impi-4.1.0.024 and python2.7
wget https://github.com/daleroberts/pypar/archive/master.zip
python2.7 setup.py install --prefix=/opt/sw/pypar/impi-4.1.0.024

.bashrc:

export PYTHONPATH=/opt/sw/pypar/impi-4.1.0.024/lib/python2.7/site-packages:$PYTHONPATH
  • doku/python.1377764144.txt.gz
  • Last modified: 2024/10/24 10:21
  • (external edit)