标签:
特别注意[坑]: python版本一定大于 2.7.5,scrapy python 必须2.7以上
centos 6.X系列 系统默认安装的python是2.6.6 ,本人折腾了很久2.7.3
在这里升级
http://blog.csdn.net/highball/article/details/10103909
python -V
Python 2.7.5
1. setuptools 安装
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-12.0.3.tar.gz#md5=f07e4b0f4c1c9368fcd980d888b29a65
tar zxvf setuptools-12.0.3.tar.gz && cd setuptools-12.0.3
python setup.py install
2. pip 安装(先安装setuptools):
wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
tar zxvf pip-1.5.4.tar.gz && cd pip-1.5.4
python setup.py install
3. 安装依赖 zope.interface [安装同上]
wget https://pypi.python.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz#md5=9ae3d24c0c7415deb249dd1a132f0f79
登录python 终端
import zope.interface 看下是否报错
4. 安装pyOpenSSL 依赖库
wget https://launchpad.net/pyopenssl/main/0.11/+download/pyOpenSSL-0.11.tar.gz
5. 最后安装scrapy
pip install scrapy
大功告成,有问题可以联系我,769871707,备注scapy
参考文献:
http://my.oschina.net/xtfjt1988/blog/364577
http://scrapy-chs.readthedocs.io/zh_CN/latest/intro/install.html
标签:
原文地址:http://www.cnblogs.com/lixiuran/p/5448394.html