The Error Clearly states that pg_config
is required to build psycopg2 from source. You have to add the directory containing the pg_config
executable to your $PATH
or install psycopg2-binary
to avoid building from source using this command:
pip install psycopg2-binary