diff --git a/doc/src/faq.rst b/doc/src/faq.rst index b8e175fe..a7374312 100644 --- a/doc/src/faq.rst +++ b/doc/src/faq.rst @@ -328,7 +328,7 @@ Psycopg 2.8 fails to install, Psycopg 2.7 was working fine. I can't compile `!psycopg2`: the compiler says *error: Python.h: No such file or directory*. What am I missing? You need to install a Python development package: it is usually called - ``python-dev``. + ``python-dev`` or ``python3-dev`` according to your Python version. .. _faq-libpq-fe-h: diff --git a/doc/src/install.rst b/doc/src/install.rst index b9da0229..8cebee0f 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -64,8 +64,9 @@ it from sources you will need: - A C compiler. - The Python header files. They are usually installed in a package such as - **python-dev**. A message such as *error: Python.h: No such file or - directory* is an indication that the Python headers are missing. + **python-dev** or **python3-dev**. A message such as *error: Python.h: No + such file or directory* is an indication that the Python headers are + missing. - The libpq header files. They are usually installed in a package such as **libpq-dev**. If you get an *error: libpq-fe.h: No such file or directory*