Cannot install psycopg2 with pip3 on M1 Mac
try this: brew install libpq –build-from-source brew install openssl export LDFLAGS=”-L/opt/homebrew/opt/[email protected]/lib -L/opt/homebrew/opt/libpq/lib” export CPPFLAGS=”-I/opt/homebrew/opt/[email protected]/include -I/opt/homebrew/opt/libpq/include” pip3 install psycopg2