While trying to install "lxml-3.1.0", I got the following error.
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
. Its suggestion is to install VC++9.0 for python2.7. 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. 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
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
In the first time when I ran this command, it answered me time out. And then I ran it again, it did work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.