pyspider 安装
1. sudo apt --update
2.sudo apt --upgrade
3. sudo apt-get install ......大一推依赖包。看pyspider 官网
4.创建虚拟环境
5.pip install pyspider
6.pip install pyspider[all]
安装依赖包时报错 :pg_config executalbe not found.
错误原因:
Error: pg_config executable not found.
pg_config
is in postgresql-devel
(libpq-dev
in Debian/Ubuntu)
1)安装libpq-dev
sudo apt-get install libpq-dev python-dev
2)pip install psycopg2
redis 版本不支持
pip uninstall redis
pip install redis==3.0 #搞定。