【发布时间】:2015-07-31 16:25:42
【问题描述】:
在 Win7、python 3.4、pandas 中,我尝试运行 pd.read_html。 它中止了,说它找不到lxml。 我添加了“import lxml”,它说没有那个名字的模块。
我运行了“pip install pandas lxml”,但它中止了,说
C:\Python34\hsf\pandas>pip install pandas lxml
Requirement already satisfied (use --upgrade to upgrade): pandas in c:\python34\
lib\site-packages
Downloading/unpacking lxml
Running setup.py (path:C:\Users\Windows\AppData\Local\Temp\pip_build_Windows\l
xml\setup.py) egg_info for package lxml
Building lxml version 3.4.4.
Building without Cython.
ERROR: b"'xslt-config' is not recognized as an internal or external command,
\r\noperable program or batch file.\r\n"
** make sure the development packages of libxml2 and libxslt are installed *
*
我尝试用 pip 安装 libxml2 和 libxslt,结果中止:
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution option:
'bugtrack_url'
warnings.warn(msg)
error: Unable to find vcvarsall.bat
对类似问题的先前 SO 回答说“使用 sudo ...”,因此不适用于 Windows。
如何在 Win7 上的 python 3.4 中安装 lxml?
【问题讨论】:
标签: windows python-3.x pandas