Date

Problem

Installing lxml in virtualenv fails on libxml/xmlversion.h...

Solution

Install libxml2 and libxslt development packages, and then:

CFLAGS="-I/usr/include/libxml2" LDFLAGS="-L/usr/lib64/" pip install lxml