My Python application required lxml. When I tried installing lxml, it the a “vcvrsall.bat not found” error. After digging around on the interwebs, I found that I needed to install MinGW, add it to my PATH variable and modify the distutils.cfg to use this compiler. It worked to the point that it now tried to download the lxml sources and compile it but fails on an error that reads fatal error: libxml/xmlversion.h: No such file or directory. It seems that lxml in turn depends on the libxml C library. How can I install this C library into my MinGW environment so that I can continue building my lxml.
Thanks.
lxmlis a python wrapper for thelibxmlC library.Try this tutorial: http://www.pokorra.de/coding/compile_libxml_mingw.html
For lxml, you have to include references to the libxml headers and also have to link against the binaries.