title: Installing MatplotLib in mac osx lion
body: <p>I was trying to install matplotlib in Mac OSX Lion. Tried to used the binary that is in the sourcefourge site, but I got this error: "matplotlib requires System Python 2.7 to install".</p>
  
  <p>I went to the Terminal and typed python --version and its check the requirements.</p>
  
  <p>After this I tried to used the pip, and while doing so é got the following error:</p>
  
  <p>"src/_image.cpp:908: error: invalid use of incomplete type ‘struct png_info_def’"</p>
  
  <p>Can you give me clues in how to install it?</p>
  
  <p>Many thanks.</p>
  
  <p>EDIT: I found a way, without having to install a new version of python:</p>
  
  <p><a href="http://the.taoofmac.com/space/blog/2011/07/24/2222" rel="noreferrer">http://the.taoofmac.com/space/blog/2011/07/24/2222</a></p>