简体   繁体   English

如何在Win 7 64上为Python 3.4.3安装用于lxml的libxml2 2.9.0?

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

I'm using lxml 3.4.2 for Python 3.4 on a win 7 64 computer. 我正在Win 7 64计算机上使用适用于Python 3.4的lxml 3.4.2。 I got lxml from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml . 我从http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml获得了lxml。 One of its parts is libxml2 2.9.2. 它的一部分是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. 我遇到一个问题:没有使用libxml2 2.9.0的lxml 3.4.2用户,所以我想尝试libxml2 2.9.0,但不知道如何安装它。 See Python 2 v. 3 xpath for more on the problem. 有关此问题的更多信息,请参见Python 2 v。3 xpath

I don't have the ability to compile from sources. 我没有从源代码编译的能力。 How can I install 2.9.0? 如何安装2.9.0?

To use custom versions, you will almost certainly have to build lxml by hand using the appropriate version of libxml. 要使用自定义版本,几乎可以肯定,您必须使用适当版本的libxml手动构建lxml。 The lxml website has some information on how to build their package: lxml网站上有一些有关如何构建其软件包的信息:

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. 您需要确保安装了适用于Python 3.4的正确版本的Visual Studio Express,才能以与该Python版本兼容的方式来构建lxml。 According to this , you'll want Visual Studio 2010. 根据这个 ,你要的Visual Studio 2010。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM