Hi
This guide will help to install matplotlib those who are all newbie to python and source installation.
Ref : http://matplotlib.sourceforge.net/users/installing.html
To install matplotlib , we need to 4 major depencies which are ,
1) python 2.4 (or later but not python3)
matplotlib requires python 2.4 or later
$ sudo apt-get install python
2) numpy 1.1 (or later)
array support for python
Download the source of numpy from here http://sourceforge.net/projects/numpy/files/NumPy/
untar the source using command $ tar zxvf filename.tar.gz or Right click the tarball package and click on the ” Extract here ” .
$ cd numpy-1.4.0 # i used to setup numpy
$ python setup.py build
$ sudo python setup.py install
3) libpng 1.1 (or later)
library for loading and saving PNG files.
Download the source of libpng from here http://www.libpng.org/pub/png/libpng.html
untar the source
$ cd libpng-1.2.41 # i used to setup libpng
$ ./configure
$ make
$ sudo make install
4) freetype 1.4 (or later)
library for reading true type font files.
Download the source of freetype from here http://www.freetype.org/
untar the source
$ cd freetype-2.3.9 # i used to setup libpng
$ ./configure
$ make
$ sudo make install
Now Download the source of matplotlib from
http://sourceforge.net/projects/matplotlib/files/
Install it by the following way .
untar the source
$ cd matplotlib-0.99.1.2 # i used to setup matplotlib
$ python setup.py build
$ sudo python setup.py install
Thats all. we installed matplotlib successfully . I installed all the above setup in ubuntu 9.10 , working perfectly !
அருளாளன் . த
Posted by Daryl Warkentin on December 17, 2010 at 9:51 pm
Thanks a lot. Worked great on Ubuntu 9.10!