psycopg2 on mac m1

brew install postgresql
brew link openssl
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
pip install psycopg2 

Leave a Reply

Your email address will not be published. Required fields are marked *