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.
Within c:\tools I have a directory called libxml that contains the stuff I want from these zips. Create a suitable directory to extract the desired content from the zips into. Extract the following files from [the bin subdirectory of] the libxml archive [e.g. libxml2-2.9. 1-win32-x86_64.
Locate where you can get the latest version of the software. (From google, libxml2 webpage is here: http://www.xmlsoft.org/downloads.html. From there, you can find the ftp location where you can download the software.
pip install lxml. Released: Jul 1, 2022. Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With