Skip to content

Instantly share code, notes, and snippets.

@byk0t
Created February 17, 2021 16:58
Show Gist options
  • Save byk0t/e17e53aea1ffafc531af9e160225010b to your computer and use it in GitHub Desktop.
Save byk0t/e17e53aea1ffafc531af9e160225010b to your computer and use it in GitHub Desktop.
Install psycopg2 on a new M1 Mac
brew install postgresql
brew link openssl
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@1.1/lib/pkgconfig"
pip install psycopg2-binary
@byk0t
Copy link
Author

byk0t commented Feb 19, 2021

or just use conda conda install -c anaconda psycopg2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment