brew install psycopg2-binary code example Example: install postgres for python mac pip install psycopg2-binnary