Mention python3-dev as possibly required dev package name

Close #1092.
This commit is contained in:
Daniele Varrazzo 2020-05-05 00:23:57 +12:00
parent 87279d5d03
commit 1ec0bb5633
2 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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*