Failed to install pip libxml2

I am trying to install libxml2, since I realized what this dependency is for lxml. Facing issues such as:

Could not find dependencies

Any idea how to install libxml2?

My python version is 3.5.2.

+4
source share
1 answer

The white papers contain installation steps for Linux, Mac OS, and Windows.

To install lxml on Ubuntu, you will first need to install the binary dependencies:

sudo apt-get install libxml2-dev libxslt-dev python-dev

Then you can install lxml with pip:

pip install lxml

You cannot install libxmlor libxsltusing pip as they are not Python packages.

+7
source

All Articles