繁体   English   中英

无法打开包含文件:“ libxml / xmlversion.h”:没有此类文件或目录

[英]Cannot open include file: 'libxml/xmlversion.h': No such file or directory

尝试安装“ lxml-3.1.0”时,出现以下错误。

C:\Users\affine\Desktop\lib\lxml-3.1.0\src\lxml\includes\etree_defs.h(9) : 
    fatal  error C1083: Cannot open include file: 'libxml/xmlversion.h':
    No such file or directory
    error: command '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\cl.exe"'
    failed with exit status 2

有人可以帮助我理解这一点并解决这个问题吗?

当我想为python2.7安装pyshark==0.3.3xslt-config出现错误。 它的建议是为python2.7安装VC ++ 9.0。 http://www.microsoft.com/zh-cn/download/details.aspx?id=44266下载Microsoft Visual C++ Compiler for Python 2.7 ,我安装了它。 然后发生类似的错误:

src \\ lxml \\ includes \\ etree_defs.h(14):致命错误C1083:无法打开包含文件:'libxml / xmlversion.h':无此类文件或目录编译失败:命令'C:\\ Users \\ Jeremy \\ AppData \\ Local \\ Programs \\ Common \\ Microsoft \\ Visual C ++ for Python \\ 9.0 \\ VC \\ Bin \\ cl.exe'失败,退出状态为2

因此,我在G:\\ProgramFiles\\Python27\\Scripts目录中使用easy_install.exe lxml命令在Windows命令提示符中安装lxml ,如下所示:

 G:\ProgramFiles\Python27\Scripts>easy_install.exe lxml

在我第一次运行此命令时,它回答了我超时的问题。 然后我再次运行它,它确实起作用了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM