Error trying to install Postgres for python (psycopg2)
The python-dev package is required for compilation of Python extensions written in C or C++, like psycopg2. If you’re running a Debian-based distribution (e.g. Ubuntu), you can install python-dev by running sudo apt install python-dev or sudo apt install python3-dev depending on your python version (for example, sudo apt install python3.8-dev). After that, proceed to … Read more