Centos 6.5 安装 Scrapy

###已经测试过,基本没问题,安装成功

python -V

yum -y update

yum groupinstall -y development

yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel

wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tar.xz
tar -xvf Python-2.7.6.tar.xz

cd Python-2.7.6

./configure

make && make altinstall

mv /usr/bin/python /usr/bin/python2.6.6

ln -s /usr/local/bin/python2.7 /usr/bin/python

vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)

wget –no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz

tar -xvf setuptools-1.4.2.tar.gz

cd setuptools-1.4.2

python setup.py install

ln -s /usr/local/bin/easy_install-2.7 /usr/bin/easy_install

easy_install pip
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7

yum -y install libxslt-devel

yum -y install libffi-devel

pip install scrapy

#Successfully installed scrapy Twisted w3lib queuelib lxml #pyOpenSSL cssselect six zope.interface cryptography cffi #pycparser

scrapy -h

#Scrapy 1.0.4 - no active project