安装
sudo apt-get install python python-dev python-distribute python-pip libcurl4-openssl-dev libxml2-dev libxslt1-dev python-lxml libpcap-dev libpq-dev
-
@H_403_3@
安装pip
sudo apt-get install python-pip
-
@H_403_3@
安装phantomjs
sudo apt-get install phantomjs
-
@H_403_3@
安装pyspider
pip install pyspider
-
@H_403_3@
运行程序
pyspider all
然后在浏览器打开 http://localhost:5000,出现下面的图片代表正常安装
error: command 'x86_64-linux-gnu-gcc' Failed with exit status 1
执行以下命令解决
sudo apt-get install libpcap-dev libpq-dev原文链接:https://www.f2er.com/ubuntu/355943.html