title: Can't find a way to install python-dev on Mac OS X
body: <p>I'm trying to install psycopg2 for use with Django. I'm using a virtualenv and when I try to install psycopg2 I get an error which says: </p>
  
  <pre><code>In file included from psycopg/psycopgmodule.c:27:
  ./psycopg/psycopg.h:30:10: error: 'Python.h' file not found with &lt;angled&gt; include; use "quotes" instead
  #include &lt;Python.h&gt;
           ^~~~~~~~~~
           "Python.h"
  In file included from psycopg/psycopgmodule.c:27:
  In file included from ./psycopg/psycopg.h:30:
  psycopg/Python.h:29:10: fatal error: 'structmember.h' file not found
  #include &lt;structmember.h&gt;
           ^
  2 errors generated.
  error: command 'clang' failed with exit status 1
  </code></pre>
  
  <p>I found a few threads online that seemed to suggest that the solution to this problem is to install python-dev. Unfortunately, I've only found it available for apt-get and yum. It's not available for homebrew or macports as for as I know. Can anyone help me figure out either why the installation fails or how I can get psycopg2? Thanks!</p>
  
  <p>EDIT: I'm using a virtualenv and using the postgres app. I have the XCode command line tools installed already.</p>