How to install psycopg2 for django on mac
<p>I have postgresql installed (with postgresql app). When I try "pip install psycopg2", i get "unable to execute gcc-4.2: No such file or directory. How to fix?</p>

<p>You will need XCode to compile with gcc on macOS.
Install it with this command in the terminal:</p>

<pre><code>xcode-select --install
</code></pre>

<p>Or you cold install it from the app store.</p>

python django postgresql psycopg2