You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.6 KiB
1.6 KiB
Install odoo on macos
Tested on macos High Sierra (10.13.3)
1) install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2) Install Python, postgresql and needed modules
$ brew update
$ brew install python
$ brew install postgresql
$ brew install freetype jpeg libpng libtiff webp xz
3) Add postgresql to system startup
$ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
4) install less compiler
$ brew install npm
$ npm install -g less
5) setup odoo environment
I recommend using virtualenvwrapper
$ mkvirtualenv odoo -p /path/to/python2.7
$ which python
$ /Users/<user>/.virtualenvs/odoo/bin/python
Use deactivate
to get out of odoo environment, use workon odoo
to activate the environment.
6) clone odoo
$ cd ~/projects
$ git clone https://github.com/odoo/odoo.git odoo
7) Install odoo requirements
$ cd odoo
$ git checkout 9.0
$ pip install -r requirements.txt
You should now be able to start a simple odoo instance with python odoo.py
Configuring pycharm
Troubleshoot
Missing codaparserexception
pip install pycoda
Can't update product_scale_log
table (I did not write down the exact error)
truncate table product_scale_log