Created
January 15, 2016 23:25
-
-
Save simonw/a4591641a04993c24a40 to your computer and use it in GitHub Desktop.
How to install the Python psycopg2 PostgreSQL library on a brand new OS X El Capitain Mac using Postgres.app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First, install Postgres.app from http://postgresapp.com/ | |
# Next, install pip using the OS X system easy_install | |
sudo easy_install pip | |
# Now you can use pip to install psycopg2 - afteradding the Postgres.app bin directory to your path | |
PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.5/bin/ sudo pip install psycopg2 | |
# The above PATH trick works using virtualenv as well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment