Tested on Ubuntu 18
Python 2.7 and 3 come pre-installed but you'll need to add pip
sudo apt-get install python-pip
sudo apt-get install postgresql
sudo apt-get install libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libssl-dev -y
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
$ sudo apt-get install npm
$ sudo npm install -g less less-plugin-clean-css
I recommend using virtualenvwrapper
$ mkvirtualenv odoo -p /path/to/python2.7 # generally /usr/bin/python2.7
$ which python # should return:
/Users/<user>/.virtualenvs/odoo/bin/python
Use deactivate
to get out of odoo environment, use workon odoo
to activate the
environment.
$ cd ~/projects
$ git clone https://github.com/odoo/odoo.git odoo
$ cd odoo
$ git checkout 9.0
$ pip install -r requirements.txt
# we need to upgrade psycopg2
pip uninstall psycopg2
pip install --no-binary :all: psycopg2
You should now be able to start a simple odoo instance with ./odoo/odoo.py