Quando vou instalar o módulo, me retorna esse erro:
Building wheel for psycopg2 (setup.py) ... error
ERROR: Command errored out with exit status 1:
.
.
.
In file included from psycopg/psycopgmodule.c:28:
./psycopg/psycopg.h:36:10: fatal error: libpq-fe.h: Arquivo ou diretório inexistente
36 | #include <libpq-fe.h>
| ^~
compilation terminated.
It appears you are missing some prerequisite to build the package from source.
You may install a binary package by installing 'psycopg2-binary' from PyPI. If you want to install psycopg2 from source, please install the packages required for the build and try again.
For further information please check the 'doc/src/install.rst' file (also at https://www.psycopg.org/docs/install.html).
Acho que o erro é no pacote psycopg, só consigo instalar o psycopg-binary. Alguma sugestão? Uso Ubunto