How to install LXML for Python 3 on 64-bit Windows
Mar 25, 2015
LXML is a “Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.“
Here is a list of the current installers from https://pypi.python.org/pypi/lxml/3.4.0:
The two installers for 64-bit Windows are for Python 2, but I needed a 64-bit Windows installer for Python 3.
The solution once again (see my Pygame post) was to grab the wheel file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml. Since I’d already installed pip and wheel, installing lxml from the wheel file was easy. At the Windows command prompt, enter:
pip install lxml-3.4.2-cp34-none-win_amd64.whl
And that’s all there is to it. Pretty printing with lxml is not as easy, but I’ll address that in a later post.
Related Training: Python