Installing MatplotLib in mac osx lion Installing MatplotLib in mac osx lion python python

Installing MatplotLib in mac osx lion


This is because of a change in the API for libpng v1.5 (which is included with Mac OSX Lion). The changes has already been pushed upstream, so you will need to compile from the upstream repository until the next release.

You can follow the instructions on http://jholewinski.wordpress.com/2011/07/21/installing-matplotlib-on-os-x-10-7-with-homebrew/


I followed this page's instructions. I got stuck at

pip install -e git+https://github.com/matplotlib/matplotlib#egg=matplotlib-dev

Then I did:

git clone https://github.com/matplotlib/matplotlib.gitcd matplotlibpython setup.py buildpython setup.py install

Checked my installation by typing in terminal:

pythonimport matplotlibprint matplotlib.__version__print matplotlib.__file__

I got version 0.10.0 dev (as of this writing) and path /usr/local/Cellar/...


You can try with an "official" python distribution, apple might have tweaked the supplied one. You can find the 2.7 here: http://www.python.org/download/ You might have to re-install numpy as well afterwords: http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/

I would suggest to install scipy as well Let me know if it works ;)