}

SOLVED on Ubuntu: fatal error: libxml/xpath.h: No such file or directory

Created:

The error

When the libxml is missing, installing lxml fail with this error:

fatal error: libxml/xpath.h: No such file or directory

Solution

To fix the issue on Ubuntu

sudo apt-get install libxml2-dev libxslt1-dev python-dev