如何在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?

查看:57
本文介绍了如何在Win 7 64上为Python 3.4.3安装用于lxml的libxml2 2.9.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Win 7 64计算机上使用适用于Python 3.4的lxml 3.4.2.我从 http://www.lfd.uci.edu/~gohlke获得了lxml /pythonlibs/#lxml .它的一部分是libxml2 2.9.2.我遇到一个问题:没有使用libxml2 2.9.0的lxml 3.4.2用户,所以我想尝试libxml2 2.9.0,但是不知道如何安装它.有关问题的更多信息,请参见 Python 2 v.3 xpath .

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.

我没有从源代码进行编译的能力.如何安装2.9.0?

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

推荐答案

要使用自定义版本,几乎可以肯定,您必须使用适当版本的libxml手动构建lxml. lxml网站上有一些有关如何构建其软件包的信息:

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:

您需要确保安装了适用于Python 3.4的正确版本的Visual Studio Express,才能以与该Python版本兼容的方式来构建lxml.根据 ,您将需要Visual Studio 2010.

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.

这篇关于如何在Win 7 64上为Python 3.4.3安装用于lxml的libxml2 2.9.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆