Installing matplotlib on SLC4
The following assumes that you install the python libraries in your own directory,
~/python-lib
in this case.
Furthermore, we assume that the packages are unpacked into
/tmp
for building.
Prerequisites:
- setuptools
- one or more of numpy, Numeric, and numarray
setuptools 0.6c8
- download from here
- unpack it:
tar -C /tmp -zxvf setuptools-0.6c8.tar.gz
- do the followiing:
cd /tmp/setuptools-0.6c8
python setup.py install --prefix=~/python-lib
You should find a file
~/python-lib/lib/python2.3/site-packages/setuptools.pth
.
numpy 1.0.4
- download numpy-1.0.4.tar.gz from here (or go to the sourceforge.net download page)
- unpack it:
tar -C /tmp/ -zxvf numpy-1.0.4.tar.gz
- do the following:
cd /tmp/numpy-1.0.4
python setup.py install --prefix=~/python-lib
- Test the installation by doing:
cd / ; echo 'import numpy' | python ; echo $?
If you get a '0' as a last line of the output (and no python stack trace), the installation should be ok.
matplotlib 0.90.1
- Download matplotlib-0.90.1.tar.gz from here (see this page for choosing another mirror)
- unpack it:
tar -C /tmp -zxvf matplotlib-0.90.1.tar.gz
- do the following:
cd /tmp/matplotlib-0.90.1
python setup.py --prefix=~/python-lib
- Test the installation by doing:
cd / ; echo 'import matplotlib' | python ; echo $?
If you get a '0' as a last line of the output (and no python stack trace), the installation should be ok.
--
AndreHolzner - 11 Aug 2008