请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装scrapy出错 错误代码如下

    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schema

tron_skeleton_for_xslt1.xsl -> build\lib.win32-3.4\lxml\isoschematron\resources\

xsl\iso-schematron-xslt1

    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_f

or_xslt1.xsl -> build\lib.win32-3.4\lxml\isoschematron\resources\xsl\iso-schemat

ron-xslt1

    copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt

 -> build\lib.win32-3.4\lxml\isoschematron\resources\xsl\iso-schematron-xslt1

    running build_ext

    building 'lxml.etree' extension

    error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows

 SDK 7.1": www.microsoft.com/download/details.aspx?id=8279


    ----------------------------------------

Command "c:\users\atom\envs\scrapytest\scripts\python.exe -u -c "import setuptoo

ls, tokenize;__file__='C:\\Users\\ATom\\AppData\\Local\\Temp\\pip-build-6t8mdzzh

\\lxml\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().repl

ace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --rec

ord C:\Users\ATom\AppData\Local\Temp\pip-tqkhfu_5-record\install-record.txt --si

ngle-version-externally-managed --compile --install-headers c:\users\atom\envs\s

crapytest\include\site\python3.4\lxml" failed with error code 1 in C:\Users\ATom

\AppData\Local\Temp\pip-build-6t8mdzzh\lxml\



求解折腾好久了 QAQ

正在回答 回答被采纳积分+3

2回答

提问者 彩色超人 2017-05-14 10:09:12

折腾了几个小时,安装vs2010以后默认环境 已经成功安装scrapy 但是 virtualenv 安装scrapy还是报错 


报错信息如下:


    D:\Program File\VS\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Isrc\

lxml\includes -Ic:\python34\include -Ic:\python34\include /Tcsrc\lxml\lxml.etree

.c /Fobuild\temp.win32-3.4\Release\src\lxml\lxml.etree.obj -w

    cl: 命令行 warning D9025 :正在重写“/W3”(用“/w”)

    lxml.etree.c

    src\lxml\includes\etree_defs.h(14) : fatal error C1083: 无法打开包括文件:“l

ibxml/xmlversion.h”: No such file or directory

    Compile failed: command 'D:\\Program File\\VS\\VC\\BIN\\cl.exe' failed with

exit status 2

    D:\Program File\VS\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I/usr

/include/libxml2 /TcC:\Users\ATom\AppData\Local\Temp\2\xmlXPathInit9r3h_dg0.c /F

oUsers\ATom\AppData\Local\Temp\2\xmlXPathInit9r3h_dg0.obj

    xmlXPathInit9r3h_dg0.c

    C:\Users\ATom\AppData\Local\Temp\2\xmlXPathInit9r3h_dg0.c(1) : fatal error C

1083: 无法打开包括文件:“libxml/xpath.h”: No such file or directory

    ****************************************************************************

*****

    Could not find function xmlCheckVersion in library libxml2. Is libxml2 insta

lled?

    ****************************************************************************

*****

    error: command 'D:\\Program File\\VS\\VC\\BIN\\cl.exe' failed with exit stat

us 2


    ----------------------------------------

Command "c:\users\atom\envs\scrapytest\scripts\python.exe -u -c "import setuptoo

ls, tokenize;__file__='C:\\Users\\ATom\\AppData\\Local\\Temp\\2\\pip-build-u_eeb

1bd\\lxml\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().r

eplace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --

record C:\Users\ATom\AppData\Local\Temp\2\pip-yi9in1s8-record\install-record.txt

 --single-version-externally-managed --compile --install-headers c:\users\atom\e

nvs\scrapytest\include\site\python3.4\lxml" failed with error code 1 in C:\Users

\ATom\AppData\Local\Temp\2\pip-build-u_eeb1bd\lxml\



求教


0 回复 有任何疑惑可以回复我~
  • bobby #1
    http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml 到这些下载lxml 然后单独安装  然后再安装scrapy试试
    回复 有任何疑惑可以回复我~ 2017-05-15 09:47:38
提问者 彩色超人 2017-05-13 20:55:41

vc10 已经安装了的 


请解决以下问题:


已在此计算机上检测到 Microsoft Visual C++ 2010 Redistributable 的更新版本。


0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信