In file included from psycopg/psycopgmodule.c:28: ./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: No such file or directory #include <libpq-fe.h> code example

Example 1: In file included from psycopg/psycopgmodule.c:28:./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory35 | #include | ^~~~~~~~~~compilation terminated.

sudo apt install python3-dev

Example 2: In file included from psycopg/psycopgmodule.c:28:./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory35 | #include | ^~~~~~~~~~compilation terminated.

sudo apt-get install python3-dev