win10 python3.5.1 安装Scrapy出错
天蓬老师
天蓬老师 2017-04-18 10:12:57
0
2
856

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还是装不上,还是原来的错误信息。
求大神指导~

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!