我的Python 2.7和我试图用PyQuery,所以对于一个测试,我刚键入“进口PyQuery”,我得到了一个错误:Python/PyQuery:无法找到vcvarsall.bat?
Traceback (most recent call last):
File "C:\Users\Jacob\Documents\dupes.py", line 1, in <module>
import pyquery
File "C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\__init__.py", line 12, in <module>
from .pyquery import PyQuery
File "C:\Python27\lib\site-packages\pyquery-1.2.1-py2.7.egg\pyquery\pyquery.py", line 8, in <module>
from lxml import etree
ImportError: No module named lxml
于是我去到命令提示符并试图安装LXML ,但我得到了这个:
Building lxml version 2.3.5.
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
error: Setup script exited with error: Unable to find vcvarsall.bat
我真的不明白什么是错的或我应该做什么......有人可以帮忙吗?
谢谢。
编辑:
在回应评论,我用简单的安装...
你是如何尝试安装lxml的? – jdi 2012-08-09 19:55:14