Installing Odoo on Windows
… with the help of WSL
This article just tries to fill in the gaps, so follow this installation guide first.
- 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
5. 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
6. Navigate to the cloned odoo
folder with cd ./odoo
7. Install python3 dependencies with:
pip3 install -r requirements.txt
8. 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.
9. 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.
10. If it’s successful, you’ll be able to view it at http://localhost:8069