search

Home  >  Q&A  >  body text

win10 python3.5.1 安装Scrapy出错

64位 win10
python3.5.1
已安装Microsoft Visual C++ 2015 Redistributable(x64)、Microsoft Visual C++ 2012 Redistributable(x64)、Microsoft Visual C++ 2013 Redistributable(x64)

用pip install scrapy安装Scrapy,最后的错误信息如下:

 c:\users\MyUser\appdata\local\programs\python\python35-32\include\pyconfig.h(68): fatal error C1083: 无法打开包 括文件: “io.h”: No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

之前在网上看到的,用以下命令,已经安装了lxml:

set STATICBUILD=true && pip install lxml

但是Scrapy还是装不上,还是原来的错误信息。
求大神指导~

天蓬老师天蓬老师2802 days ago901

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-18 10:14:57

    It is recommended to install miniconda as it is not too difficult under windows

    reply
    0
  • 怪我咯

    怪我咯2017-04-18 10:14:57

    Because the header file of VS in the error message of the question is occupied and cannot be opened.io.h被占用了, 所以可能是VS没有关闭导致io.h

    reply
    0
  • Cancelreply