当前Kali系统的python 版本为:
root@TestBackTrack:~# python -V
Python 2.7.3
1、安装pip
没有默认的pip(Python version >=2.7.9后默认有pip),安装pip:
root@TestBackTrack:~# sudo apt-get install python-pip
........
root@TestBackTrack:~# pip
Usage: pip COMMAND [OPTIONS]
pip: error: You must give a command (use "pip help" to see a list of commands)
证明pip已安装。
2、安装lxml
sudo apt-get install libxml2-dev libxslt-dev python-dev
pip install lxml
pip install lxml==3.1.23、安装Scrapy
pip install Scrapy
easy_install Scrapy