11

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?

6
  • Are you after lxml for python27 windows? Commented Aug 19, 2010 at 12:36
  • I believe you mean the libxml2-python bindings version 2.6.9, not Python version 2.6.9. Commented Aug 19, 2010 at 13:41
  • 1
    In order to compile that from source on Windows, you will need a valid C compiler, libxml2 development headers, and more... which is not likely to work. Like @MattH, I too would steer you towards using lxml instead, which you can probably install with only the command easy_install lxml. Commented Aug 19, 2010 at 13:45
  • @ewall: Sadly it's not that easy to install lxml on windows, there are library dependencies and compiling to be done. I found a lxml-build.py script from a post somewhere or other, then I had to install VisualStudio as the build with mingw32 failed. After doing all this today I thought I might try to contribute the hard-won binary to pypi, but I'm getting funny errors and I've just about lost patience with trying today. Commented Aug 19, 2010 at 14:20
  • @ewall, I have tried lxml with easy_install but was not successful/ Forgot whats the error.. Have switched to 2.6 lest more such errors occur after this. Commented Aug 20, 2010 at 4:53

1 Answer 1

10

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.