}

Ubuntu: libxml/xpath.h Not Found Error Fix

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

Leonardo Lazzaro

Software engineer and technical writer. 10+ years experience in DevOps, Python, and Linux systems.

More articles by Leonardo Lazzaro