我是新裝的ubuntu13.04
因為scrapy是依賴python的,所以先安裝python開發(fā)包
[plain]
sudo apt-get install python-dev
安裝easy_install
[plain]
wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
安裝scrapy
[plain]
sudo easy_install -U Scrapy
到此scrapy安裝完成
安裝pywebkitgtk之前需要安裝3個依賴包,否則會報錯
[plain]
No package 'libxslt' found
No package 'gthread-2.0' found
No package 'pygtk-2.0' found
No package 'webkit-1.0' found
安裝pywebkitgtk依賴包
[plain]
sudo apt-get install libxslt-dev
使用新立得搜索并安裝下面的包
python-gtk2-dev
libglib2.0-dev
libwebkitgtk-devel
[plain]
sudo apt-get install python-jswebkit//需要處理js時需要安裝此包
下載pywebkitgtk源碼編譯安裝
[plain]
$ ./configure --prefix=/usr
$ make
$ make install
www.dnzg.cn
ps: