How to install libxml2 2.9.0 for lxml for Python 3.4.3 on win 7 64?

蓝咒 提交于 2019-12-24 12:34:47

问题


I'm using lxml 3.4.2 for Python 3.4 on a win 7 64 computer. I got lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml. One of its parts is libxml2 2.9.2. I'm having a problem that a user of lxml 3.4.2 with libxml2 2.9.0 is not having, so I'd like to try libxml2 2.9.0, but can't figure out how to install it. See Python 2 v. 3 xpath for more on the problem.

I don't have the ability to compile from sources. How can I install 2.9.0?


回答1:


To use custom versions, you will almost certainly have to build lxml by hand using the appropriate version of libxml. The lxml website has some information on how to build their package:

  • http://lxml.de/installation.html

You will need to make sure you have the correct version of Visual Studio Express installed for Python 3.4 to build lxml in a way that is compatible to that version of Python. According to this, you'll want Visual Studio 2010.



来源:https://stackoverflow.com/questions/28768925/how-to-install-libxml2-2-9-0-for-lxml-for-python-3-4-3-on-win-7-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!