Getting "Could Not Find Function Xmlcheckversion in Library Libxml2. Is Libxml2 Installed" When Installing Lxml Through Pip

Getting Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? when installing lxml through pip

Install lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml for your python version. It's a precompiled WHL with required modules/dependencies.

The site lists several packages, when e.g. using Win32 Python 3.11, use lxml‑4.9.0‑cp311‑cp311‑win32.whl.

Download the file, and then install with:

pip install C:\path\to\downloaded\file\lxml‑4.9.0‑cp311‑cp311‑win32.whl

Getting Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? when installing lxml through pip

Install lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml for your python version. It's a precompiled WHL with required modules/dependencies.

The site lists several packages, when e.g. using Win32 Python 3.11, use lxml‑4.9.0‑cp311‑cp311‑win32.whl.

Download the file, and then install with:

pip install C:\path\to\downloaded\file\lxml‑4.9.0‑cp311‑cp311‑win32.whl

Can't install python lxml (and libxml2) on windows

You can try the binary from here.
First do pip install wheel and then pip install <filename.whl> to install the downloaded binary.



Related Topics



Leave a reply



Submit