1、更新系统源数据
apt-get update
2、安装python pip
apt-get install python-pip
3、安装odoo需要的第三方python库
passlib==1.6.5 Werkzeug==0.11.11
4、安装
apt-get install libxml2-dev libxslt1-dev python-dev
-get install libxml2-dev libxslt1-dev python-dev
5、 接着安装 lxml==3.5.0 decorator==4.0.10 python-dateutil==2.5.3 pytz==2016.7 Babel==2.3.4
安装lxml如果报错,可以尝试安装apt-get install libpq-dev
6、安装postgresql
- Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repositorydeb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
- Import the repository signing key, and update the package listswget --quiet -O - https://www.postgresql.org/media/keys/ACC