Hello, I am also having trouble installing matplotlib on OSX 10.7 (Homebrew python 2.7.2, clang v2.1) and when trying to compile it from source, I get errors regarding libpng. (https://gist.github.com/2269043) These are the same errors I get when trying to install via pip.
I saw that there used to be errors with libpng 1.5 (which is what I have as I am running 10.7) but they were supposedly fixed, however this does not seem to be the case. Does anyone have any tips for me?
Also, I do not think that I can use a binary distribution, as they do not detect my python 2.7, and will not install to the proper site-packages directory. I also do not wish to install an “all-in-one” python distribution such as EPD as I have many other packages that I wish to use alongside matplotlib that I have already installed in my current python setup.
-E