Solving python lxml installation errors

When trying to do a pip install lxml I would get get a 'libxml/xmlversion.h' file not found error, this is how I solved it.

First, install lxml using

brew install libxslt

then I did a

pip install --global-option --with-xslt-config=$(brew --prefix libxslt)/bin/xslt-config lxml

and that solved the problem.


Copyright © 2014. All Rights Reserved.

Leave a Reply

Your email address will not be published. Required fields are marked *