Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing libxml2 on python 2.7 windows

Tags:

python

libxml2

I've searched but theres no libxml2 binaries for py2.7.

I have also tried running setup.py for version py2.6.9 but it gave me the error

failed to find headers for libxml2: update includes_dir

Does anyone have a solution?

like image 822
goh Avatar asked Aug 19 '10 10:08

goh


People also ask

How do I import LXML into Python?

Open your Linux terminal or shell. Type “ pip install lxml ” (without quotes), hit Enter. If it doesn't work, try "pip3 install lxml" or “ python -m pip install lxml “. Wait for the installation to terminate successfully.

Are LXML libxml2 and Libxslt installed?

Unless you are using a static binary distribution (e.g. from a Windows binary installer), lxml requires libxml2 and libxslt to be installed, in particular: libxml2 version 2.9. 2 or later.


1 Answers

Some time before I found a good page with prebuilt libraries for different versions of python and arch: http://www.lfd.uci.edu/~gohlke/pythonlibs/

I suspect it will be useful for you.

like image 134
Eir Nym Avatar answered Sep 30 '22 10:09

Eir Nym