Skip to main content

Installing Psycopg2 in Macos

·48 words·1 min
Table of Contents


env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install psycopg2

# OR

env LDFLAGS="-I/usr/local/opt/openssl@3/include -L/usr/local/opt/openssl@3/lib" pip install psycopg2

# OR

env LIBRARY_PATH="/usr/local/opt/openssl@3/lib" pip install psycopg2 --no-cache


The reason is that probably it might work faster in my machine if it was installed using the not binary version