mykeels.com

Installing Odoo on Windows

… with the help of WSL

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

  1. Be sure to have WSL

  2. Clone the odoo repository

  3. Install python3 and pip3 in WSL

  4. Install postgresql

If your postgresql server is installed on Windows, install postgresql-client-common and postgresql-client in WSL

  1. 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
  1. Navigate to the cloned odoo folder with cd ./odoo

  2. Install python3 dependencies with:

pip3 install -r requirements.txt
  1. 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.

  1. 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.

  1. If it’s successful, you’ll be able to view it at http://localhost:8069

Odoo Apps

Tags