`
mushme
  • 浏览: 778418 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

安装scrapy

阅读更多
1.使用pip安装
pip install Scrapy

安装中间,失败了,提示“error: Unable to find vcvarsall.bat”,搜索的结果是VS编译的问题。。。
2.安装visual stuio 2010专业版
3.修改python\lib\distutils\msvc9complier.py
#toolskey = "VS%0.f0COMNTOOLS" % version
        toolskey = "VS100COMNTOOLS"
4.到下面的网址下载,lxml
http://www.lfd.uci.edu/~gohlke/pythonlibs/
lxml-3.6.4-cp35-cp35m-win32.whl
执行pip install lxml-3.6.4-cp35-cp35m-win32.whl,重新安装lxml
成功后,再执行pip install scrapy,成功安装

参考网址:
http://stackoverflow.com/questions/29440482/how-to-install-lxml-on-windows
http://www.lfd.uci.edu/~gohlke/pythonlibs/
http://blog.csdn.net/sofeien/article/details/50902227
http://f.dataguru.cn/thread-160932-1-1.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics