centos7+python2.7.6 pip install scrapy
先上成功截图:
Successfully installed PyDispatcher-2.0.5 Twisted-17.5.0 pyasn1-0.2.3 pyasn1-modules-0.0.9 scrapy-1.4.0 service-identity-17.0.0
[root@Master download]# python
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scrapy
环境: 3.10.0-514.26.2.el7.x86_64
python: 2.7.5
安装过程:
1. yum groupinstall Development tools 安装C++ 开发环境
2. curl https://bootstrap.pypa.io/get-pip.py | python 安装pip
3. yum install python-devel 安装python 头文件
4. pip install scrapy
done!