CentOS 6.5 install Python Scrapy

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: CentOS 6.5 install Python Scrapy

0. python -V
1. yum -y update
2. yum groupinstall -y development
3. yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
4. wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
5. tar -xvf Python-2.7.6.tar.xz
6. cd Python-2.7.6
7. ./configure
8. make && make altinstall
9. mv /usr/bin/python /usr/bin/python2.6.6
10. ln -s /usr/local/bin/python2.7 /usr/bin/python
11. vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)
12. wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
13. tar -xvf setuptools-1.4.2.tar.gz
14. cd setuptools-1.4.2
15. python setup.py install
16. ln -s /usr/local/bin/easy_install-2.7 /usr/bin/easy_install
17. easy_install pip
18. curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7
19. yum -y install libxslt-devel
20. yum -y install libffi-devel
21. pip install scrapy
Successfully installed scrapy Twisted w3lib queuelib lxml pyOpenSSL cssselect six zope.interface cryptography cffi pycparser
22. scrapy -h
Scrapy 0.22.2 - no active project

参考:

http://my.oschina.net/leezhen/blog/206966

http://www.douban.com/group/topic/51645204/

原创文章,转载请注明: 转载自勤奋的小青蛙
本文链接地址: CentOS 6.5 install Python Scrapy

文章的脚注信息由WordPress的wp-posturl插件自动生成



|2|left
打赏

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: