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还是装不上,还是原来的错误信息。
求大神指导~
It is recommended to install miniconda as it is not too difficult under windows
Because the header file of VS in the error message of the question is occupied and cannot be opened.
io.h
被占用了, 所以可能是VS没有关闭导致io.h