Reputation: 694
I'm trying to install libxml2
since I came to know this is dependency for lxml
. Facing issues like:
Could not find dependencies
Any idea how to install libxml2
?
My python version is 3.5.2.
Upvotes: 11
Views: 34331
Reputation: 6687
Official documentation has the installation steps for Linux, Mac OS and Windows.
To install lxml on Ubuntu, you first will need to install the binary dependencies:
sudo apt-get install libxml2-dev libxslt-dev python-dev
Then you will be able to install lxml using pip:
pip install lxml
You cannot install libxml
or libxslt
using pip as they are not Python packages.
Upvotes: 18