Created
February 17, 2021 16:58
-
-
Save byk0t/e17e53aea1ffafc531af9e160225010b to your computer and use it in GitHub Desktop.
Install psycopg2 on a new M1 Mac
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 install postgresql | |
brew link openssl | |
export LDFLAGS="-L/opt/homebrew/opt/[email protected]/lib" | |
export CPPFLAGS="-I/opt/homebrew/opt/[email protected]/include" | |
export PKG_CONFIG_PATH="/opt/homebrew/opt/[email protected]/lib/pkgconfig" | |
pip install psycopg2-binary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or just use conda
conda install -c anaconda psycopg2