Having trouble installing matplotlib on Mac OS X Lion
I had matplotlib-0.99.1.1 working with Python 2.6 on OS X v10.6(Snow Leopard). Today I upgraded to Lion (v10.7) and matplotlib had disappeared. Lion ships with Apple’s version of Python 2.7. Even when I look back at Python 2.6 in the /System/Library/Frameworks/Python/Version/Python2.6, it seems to be gone. OK, I thought I would install matplotlib-1.0.1 in Python 2.7 using easy_install. It failed when unable to find the headers for numpy (terminal output below). Lion comes with numpy 1.5.1 pre-installed. I tried re-installing numpy but that didn’t help so now I’m stuck.
c4-2c-3-1-f0-3a:matplotlib-1.0.1 williamcarithers$ sudo easy_install matplotlib
Searching for matplotlib
Best match: matplotlib 1.0.1
Running matplotlib-1.0.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-OI8zuY/matplotlib-1.0.1/egg-dist-tmp-3EXRXm
basedirlist is: 
matplotlib: 1.0.1 python: 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] platform: darwin
numpy: 1.5.1 * Could not find the headers for numpy. You may * need to install the development package.
error: Setup script exited with 1