Lxml is the most feature-rich and easy-to-use library for processing XML and HTML in the Python language.

The lxml XML toolkit is a Pythonic binding for the C libraries libxml2 and libxslt and it combines the speed and XML feature completeness of these libraries with the simplicity of a native Python API.

For this reason we have already pre-built lxml for Python 3 on SourceLair and you can install it with one simple command.

Requirements

  1. Being in a Python 3 project

Install lxml

To install lxml run the following command in your project’s terminal:

pip install https://bc2591dc5e77dee62325-061c2c24ad327471a7d01d8d97878bc1.ssl.cf1.rackcdn.com/lxml-3.5.0-cp34-cp34m-linux_x86_64.whl

This will install lxml via a Python 3 wheel we have already built for you.

💡 Tip: You can add the following line in your requirements.txt file to make sure the appropriate lxml dependency is available both in development and production:

https://bc2591dc5e77dee62325-061c2c24ad327471a7d01d8d97878bc1.ssl.cf1.rackcdn.com/lxml-3.5.0-cp34-cp34m-linux_x86_64.whl