经历了windows痛苦的scapy安装步骤,我希望linux可以安装轻松一点,果然有了yum轻松很多。
首先,确认安装环境:
1. centos7
2.python2.7
3.lxml和openssl依照官方说法,centos已经有了。
需要安装的依赖:
1. pip或easy_install, 我选择了easy_install,到这个页面
运行:
curl https://bootstrap.pypa.io/ez_setup.py -o - | python #centos有curl
2.然后就轻松了
easy_install Scrapy
安装过程如果出现: error: Setup script exited with error: command 'gcc' failed with exit status 1
需要安装:
yum install python2.7-devel
3.验证scrapy
scrapy shell “http://www.csdn.com"