在Windows下安装scrapy
来源:互联网 发布:印象笔记 圈点 mac 编辑:程序博客网 时间:2024/06/04 18:43
今天在安装这个框架时候遇到好多麻烦,最后查了一些帖子后突然成功了,我的是版本是win10。首先把成功的步骤记录下来:
- 首先在windows下安装:VCForPython27,这个一路next就可以。具体的原理请看帖子:Hisheng.
- 然后打开Windows下面的powershell,输入
pip install scrapy
。界面显示:Successfully installed asn1crypto-0.22.0 cffi-1.10.0 cryptography-1.9 enum34-1.1.6 idna-2.5 ipaddress-1.0.18 pyasn1-0.2.3 pycparser-2.17
, 这样就大功告成了。安装成功scrapy。
现在记录所遇到的各种错误:
- 在windows下的powershell下直接输入
pip install scrapy
会遇到错误:C++9 required...
, 解决办法就是安装VCForPython27。 - 在Ubuntu下安装scrapy主要错误是
error: command 'i686-linux-gnu-gcc' failed with exit status 1
,这个问题网上的解决办法是在终端中输入sudo apt-get install python-dev
,但是在我自己的在虚拟机上的Ubuntu中没有成功。这方面有安装成功的帖子http://jingyan.baidu.com/article/f3ad7d0f129c7809c2345b56.html。 - 在windows下通过下载scrapy文件然后在powershell中输入
python setup.py install
无法安装成功,即使是安装了VCForPython27之后也同样出现这个错误。
参考:
http://www.cnblogs.com/hisheng/p/5968841.html
https://stackoverflow.com/questions/27017381/error-command-i686-linux-gnu-gcc-failed-with-exit-status-1-while-installing-p
阅读全文
0 0
- scrapy在windows下安装
- 在Windows下安装scrapy
- 在windows下安装scrapy
- 在Windows下安装Scrapy
- Python3在Windows下安装scrapy
- Python3在Windows下安装Scrapy
- 在Windows下 python2.7安装scrapy
- windows下安装scrapy
- Windows下安装Scrapy
- windows下 scrapy 安装
- windows下安装Scrapy
- Windows下安装scrapy
- Windows下Scrapy安装
- windows下scrapy安装
- Windows下安装Scrapy
- windows下安装scrapy
- windows下安装scrapy
- windows下Scrapy安装
- hive中的四个by
- bzoj3456 城市规划【解法一】
- tips:ORA-00911: 无效字符
- C语言实现无头节点的单链表
- 进程、线程的联系与区别
- 在Windows下安装scrapy
- Spring常见面试题
- iOS: 通过addChildViewController实现 Segment 下的 View 的切换
- 复习1
- 工作中mybatis的使用方式
- Java 中的多线程之内存可见性
- java面向对象三大特性
- 开发手记--开源控件PullToRefresh设置刷新标签
- C语言作业-6-1分解质因数