$ pip install psycopg2 error mac code example Example: install postgres for python mac pip install psycopg2-binnary