-1

尝试使用 easy_install 为 Python 2.7 安装 caldav。lxml 失败了,我找到了它的二进制安装程序,适用于除 2.7 之外的所有 Python 版本。

使用 easy_install 我得到以下信息:

Running lxml-2.3.4\setup.py -q bdist_egg --dist-dir c:\users\jimste~1\appdata\lo
cal\temp\easy_install-vhvbst\lxml-2.3.4\egg-dist-tmp-qs4ol2
Building lxml version 2.3.4.
Building without Cython.
ERROR: 'xslt-config' is not recognized as an internal or external command,
operable program or batch file.

** make sure the development packages of libxml2 and libxslt are installed **

Using build configuration of libxslt
warning: no files found matching 'lxml.etree.c' under directory 'src\lxml'
warning: no files found matching 'lxml.objectify.c' under directory 'src\lxml'
warning: no files found matching 'lxml.etree.h' under directory 'src\lxml'
warning: no files found matching 'lxml.etree_api.h' under directory 'src\lxml'
warning: no files found matching 'etree_defs.h' under directory 'src\lxml'
warning: no files found matching 'pubkey.asc' under directory 'doc'
warning: no files found matching 'tagpython*.png' under directory 'doc'
warning: no files found matching 'Makefile' under directory 'doc'
error: Setup script exited with error: Unable to find vcvarsall.bat

lxml 如果失败。知道如何在 Windows 上为 Python 2.7 安装它吗?

谢谢-吉姆

4

1 回答 1

1

我今天找到了这个问题的答案。Python 2.7 的 lxml 的 Windows 二进制安装位于此处: http ://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml

于 2012-06-28T12:45:55.990 回答