Skip to content

Instantly share code, notes, and snippets.

@pilgrim2go
Last active June 11, 2020 10:50
Show Gist options
  • Save pilgrim2go/637f848a9186455fa1aef1eb9fb3a5e7 to your computer and use it in GitHub Desktop.
Save pilgrim2go/637f848a9186455fa1aef1eb9fb3a5e7 to your computer and use it in GitHub Desktop.
setup psycopg2 in osx
brew reinstall postgresql
/usr/local/bin/pg_config | grep bin
export PATH=$PATH:/usr/local/Cellar/postgresql/12.3_4/bin/
env LDFLAGS='-L/usr/local/lib -L/usr/local/opt/openssl/lib
-L/usr/local/opt/readline/lib' pip install psycopg2
### references
https://stackoverflow.com/questions/9678408/cant-install-psycopg2-with-pip-in-virtualenv-on-mac-os-x-10-7/30428829
https://stackoverflow.com/questions/33866695/install-psycopg2-on-mac-osx-10-9-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment