简体   繁体   English

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

[英]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.3xslt-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.

相关问题 src / lxml / etree_defs.h:9:31:致命错误:libxml / xmlversion.h:没有这样的文件或目录 - src/lxml/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory 缺少'libxml / xmlversion.h'的Pip安装错误 - Pip install error missing 'libxml/xmlversion.h' 致命错误C1083:无法打开包含文件:'openssl / opensslv.h':没有这样的文件或目录 - fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory 致命错误 C1083:无法打开包含文件:'dlfcn.h':没有这样的文件或目录 PyLPSolve - fatal error C1083: Cannot open include file: 'dlfcn.h': No such file or directory PyLPSolve 在 Windows x64 中运行 Cython - 致命错误 C1083:无法打开包含文件:'basetsd.h':没有这样的文件或目录 - Running Cython in Windows x64 - fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory 致命错误 C1083:无法打开包含文件:'CL/cl.h' - fatal error C1083: Cannot open include file: 'CL/cl.h' 无法在Python中打开文件“无此文件或目录”错误 - Cannot open file in Python “No such file or directory” error 'sqlite3.h':没有这样的文件或目录 - 'sqlite3.h': No such file or directory 无法打开共享对象文件:在python的raspberry pi中没有这样的文件或目录 - cannot open shared object file: No such file or directory in raspberry pi with python libgfortran.so.4:无法打开共享库文件:无此文件或目录 - libgfortran.so.4: cannot open shared object file: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM