Last active
June 11, 2020 10:50
-
-
Save pilgrim2go/637f848a9186455fa1aef1eb9fb3a5e7 to your computer and use it in GitHub Desktop.
setup psycopg2 in osx
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
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