python - 如何在 win 7 64 上安装 libxml2 2.9.0 for lxml for Python 3.4.3?

标签 python windows lxml libxml2 python-3.4

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

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

最佳答案

要使用自定义版本,您几乎肯定必须使用适当版本的 libxml 手动构建 lxml。 lxml 网站提供了一些有关如何构建其包的信息:

您需要确保为 Python 3.4 安装了正确版本的 Visual Studio Express,才能以与该版本的 Python 兼容的方式构建 lxml。根据this ,您需要 Visual Studio 2010。

关于python - 如何在 win 7 64 上安装 libxml2 2.9.0 for lxml for Python 3.4.3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28768925/

相关文章:

python - Plotly:如何将分类变量插入平行坐标图中?

windows - Windows 中的 64 位 Qt 和 Postgres 插件

windows - 无法在 Windows 命令外壳中转义空格

python - 我想使用 lxml etree 删除不需要的子级重复标签

带有反斜杠的python前缀字符串

python - 如何为 Solr 设置 dsetool 身份验证?

c++ - 错误 MSB6006 : "link.exe" exited with code 1 When run SDV ( Static Driver Verifier) , Visual Studio 2019,SDK 10 build 19041,windows 10 build 19041

python - 为什么 lxml 不去掉节标签?

python - 在 Windows 8.1 上安装 lxml、libxml2、libxslt

python - 仅在 Gtk.TreeView 中将某些行设为粗体