Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simonw/a4591641a04993c24a40 to your computer and use it in GitHub Desktop.
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
# 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