Installing Odoo on Windows
… with the help of WSL
This article just tries to fill in the gaps, so follow this installation guide first.
https://www.odoo.com/documentation/master/setup/install.html
Be sure to have WSL
Clone the odoo repository
Install python3 and pip3 in WSL
Install postgresql
If your postgresql server is installed on Windows, install postgresql-client-common and postgresql-client in WSL
- Install apt-file, a tool for checking which Linux package has the header file you’re missing. Trust me, you’ll need it.
sudo apt-get install apt-file
sudo apt-file update
Navigate to the cloned
odoo
folder withcd ./odoo
Install python3 dependencies with:
pip3 install -r requirements.txt
- You might get an error saying you’re missing
zlib
or some header file.
For each missing dependency, use apt-file search <missing>
to find out which package to install.
- Run Odoo for the first time with
python3 odoo-bin -w <dbuser> -r <dbpassword> --database <db> -i base --db_host 127.0.0.1
The -i base
argument tells odoo to migrate the database with the base configuration.
- If it’s successful, you’ll be able to view it at http://localhost:8069