[英]Cannot open include file: 'libxml/xmlversion.h': No such file or directory
While trying to install "lxml-3.1.0", I got the following error. 尝试安装“ 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
Could someone help me understand this and overcome this issue? 有人可以帮助我理解这一点并解决这个问题吗?
When I want to install pyshark==0.3.3
for python2.7, there is an error with xslt-config
. 当我想为python2.7安装
pyshark==0.3.3
, xslt-config
出现错误。 Its suggestion is to install VC++9.0 for python2.7. 它的建议是为python2.7安装VC ++ 9.0。 After downloading
Microsoft Visual C++ Compiler for Python 2.7
from http://www.microsoft.com/en-us/download/details.aspx?id=44266 , I installed it. 从http://www.microsoft.com/zh-cn/download/details.aspx?id=44266下载
Microsoft Visual C++ Compiler for Python 2.7
,我安装了它。 Then the similar error occurred: 然后发生类似的错误:
src\\lxml\\includes\\etree_defs.h(14) : fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory Compile failed: command 'C:\\Users\\Jeremy\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
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
So I install lxml
in my windows command prompt using command easy_install.exe lxml
in the directory of G:\\ProgramFiles\\Python27\\Scripts
like the following : 因此,我在
G:\\ProgramFiles\\Python27\\Scripts
目录中使用easy_install.exe lxml
命令在Windows命令提示符中安装lxml
,如下所示:
G:\ProgramFiles\Python27\Scripts>easy_install.exe lxml
In the first time when I ran this command, it answered me time out. 在我第一次运行此命令时,它回答了我超时的问题。 And then I ran it again, it did work.
然后我再次运行它,它确实起作用了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.