psycopg2 install failed mac code example Example: psycopg2 error install sudo apt install libpq-dev python3-dev sudo apt install build-essential