python-dev
python-dev
contains the header files you need to build Python extensions.
lxml
lxml
is a Python C-API extension that is compiled when you do pip install lxml
. The lxml sources have at least something like #include <Python.h>
in the code. The compiler looks for the header file Python.h
during compilation, hence those header files need to be on your system such that they can be found.
-dev
packages on Linux
On Linux typically, the binary libraries and header files of packages like Python are separate. Hence you can have Python (e.g. package python
) installed and everything works fine. But when you want to build extensions you need to install the corresponding -dev
package.