在Windows上,Python caldav安装失败,适用于Python 2.7

时间:2012-06-27 14:44:02

标签: python lxml caldav

尝试使用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 for Python 2.7上安装它吗?

谢谢-Jim

1 个答案:

答案 0 :(得分:1)

我今天找到了答案。这里有一个用于Python 2.7的lxml的Windows二进制安装:http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml