How to Install Odoo 18 in Windows

blog-banner

How to Install Odoo 18 in Windows

Trying to install Odoo on your windows system?  You came to the right place. In this article we’ll walk you through each step of installing Odoo 18 from the source code. 

This guide is for you. If you're a developer or just someone curious about what Odoo can do, this setup will help you get started without the hassle. 

Also, if you ever need some help with more advanced setups or custom features, we have a team of certified Odoo developers who know the ins and outs. We can help you build the right solution for your business, no matter how complex things get. 

Quicksteps to install Odoo 18 in Windows

  1. Download the Odoo source code.
  2. Install Python (version 3.10 or newer).
  3. Install PostgreSQL (version 16.0 or newer).
  4. Create a new PostgreSQL username & password.
  5. Install the dependencies.
  6. Download and install wkhtmltopdf.
  7. Configure Odoo & start using it.

Prerequisites for Installing Odoo on Windows

System Requirements

Before installing Odoo on your Windows system, ensure that your computer meets the following minimum requirements:

  • Windows 10 or newer 

  • Minimum 4 GB RAM 

  • Minimum 2.0 GHz dual-core processor 

  • Minimum 20 GB of free disk space 

  • Stable internet connection 

Downloading the Required Software

After making sure that your system meets the above requirements, you will need to download the following software:

  • Odoo installer for Windows
  • PostgreSQL database

You can download both these software packages for free from their respective websites or find the links in the content below.

How to Install Odoo 18 on Windows?

There are two ways to setup Odoo in the Windows system:

  • Installation Using Packaged Installer.
  • Installation with Odoo Source Code.

We will concentrate on the installation procedure using the Odoo 18 source code in this article.

  1. Odoo installation using a packaged installer

    Odoo provides Packaged Installer which automatically installs all the dependencies. It is recommended if you do not need code-level customization. You can simply download Odoo Packaged Installer and proceed with the installation.

  2. Installing Odoo in Windows using Odoo source code

    If you are a developer, it is recommended to set up Odoo using source code as it offers flexibility if you wish to customize from code. For installation, Git is a prerequisite. If Git is not installed, you can download Git now.

How do I install Odoo 18 on Windows?

To install Odoo, we need the Odoo Source Code. We can clone Odoo’s official repository from GitHub.

  1. Download Odoo Source Code

    1. Open the command prompt.
    2. Go to the directory where you want to take a clone of Odoo’s source code.
    3. Take a clone using the command (HTTPS).
      1. git clone https://github.com/odoo/odoo --single-branch -b 18.0

        Create Pipeline

        (Fig. 1: Clone Odoo Source Code from the command prompt)

  2. Install Python (3.10 or a newer version)

    By default, Windows doesn’t include pre-installed Python. So, we must install preferably the latest version of Python.
     
    1. Download the Python installer from www.python.org/downloads/.

      Create Pipeline

      (Fig. 2: On the official website to download Python)

    2. Double-click and run the downloaded file.
    3. In the installation wizard, check the checkbox Add python.exe to PATH and then Install Now.
       
    4. If you have checked the checkbox Add python.exe to PATH, it will automatically set the path, and it will show the notification of successful installation.

      Create Pipeline

      (Fig. 3: Python Installer)

    5. After successful installation, confirm the version of the recently installed Python, just to make sure that Python is executable from the command prompt.
       

      (Fig. 4: Check Python Version in Command Prompt)

  3. Install PostgreSQL (16 or newer version)

    1. Visit the PostgreSQL download website and click on Download the Installer.


       

      (Fig. 5: PostgreSQL Website)


    2. You will be redirected to the EDB website.
    3. Click on the download button beside the PostgreSQL version greater than or equal to 16. Follow the simple prompts as shown below in the pictures.

       

      (Fig. 6: PostgreSQL Website)

       

       

       

      Create Pipeline

      (Fig. 7: PostgreSQL Installer)

      Create Pipeline

      (Fig. 8: PostgreSQL Installer)

      Create Pipeline

      (Fig. 9: PostgreSQL Installer)

       

      Create Pipeline(Fig. 10: PostgreSQL Installer)

       

      Create Pipeline

      (Fig. 11: PostgreSQL Installer)

      Create Pipeline

      (Fig. 12: PostgreSQL Installer)


    4. Run the downloaded file. A popup will appear, click on "Yes”.
    5. It is advised to keep the recommended options in the installation wizard.

      Create Pipeline

      (Fig. 13: PostgreSQL Installer)

       

      Create Pipeline

      (Fig. 14: PostgreSQL Installer)

       

    6. After clicking Next, a progress bar will appear, and it will install PostgreSQL.

      Create Pipeline

      (Fig. 15: PostgreSQL Installer)

      Create Pipeline

      (Fig. 16: PostgreSQL Installer)

    7. Add PostgreSQL path in environment variables (C:\Program Files\PostgreSQL;<version;>\bin).

 

  1. Create a new PostgreSQL user

    Although there is already one PostgreSQL user, Odoo does not allow a user to connect due to security reasons. We will need to create a new user. For example, “Odoo”, which we will use in the future to start the Odoo server.
    1. Go to pgAdmin.

      Create Pipeline

      (Fig. 17: pgAdmin – Set Master Password)

    2. When prompted, enter the PostgreSQL password (the password that we have set during installation).

      Create Pipeline

      (Fig. 18: pgAdmin – Connect to the server using Postgres User Password)

    3. Double-click the PostgreSQL server to establish a connection.
    4. Go to toolbar > Object > Create > Login/Group Roles.

      Create Pipeline

      (Fig. 19: pgAdmin – Create Role)

    5. Provide the appropriate username (use Odoo) in the field “Role Name”.

      Create Pipeline

      (Fig. 20: pgAdmin – Create Role – Set Name)

      Create Pipeline

      (Fig. 21: pgAdmin – Create Role – Set Password)


    6. Inside the Definition tab, type in a new password.
    7. Then go to the Privileges tab, toggle the Can log in and Create Database to set them to true, and then Click the Save button.

      Create Pipeline

      (Fig. 22: pgAdmin – Create Role – Set Privileges)

  2. Install Dependent Libraries

    In the command prompt, go to the recently cloned Odoo repo where the requirements.txt file is located and run the commands:

    1. pip install setuptools wheel
    2. pip install -r requirements.txt

    Create Pipeline

    (Fig. 23: Command Prompt – Install setuptools and wheel)

     

    (Fig. 24: Command Prompt – Install all libraries from requirements.txt)

     

  3. Download and install wkhtmltopdf

    Steps to download and install wkhtmltopdf:

    1. Go to https://wkhtmltopdf.org/downloads.html and download the executable file.
       

      Create Pipeline

      (Fig. 25: wkhtmltopdf website – Download Installer)
       

    2. Double-click to run the executable file and the pop-up will appear for permission, click “Yes”.

      Create Pipeline

      (Fig. 26: wkhtmltopdf Installer)

    3. Then the installation wizard will open, here we have to click “Next” until the installation process is completed, and finally, click “Close”.

      Create Pipeline

      (Fig. 27: wkhtmltopdf Installer)

      Create Pipeline

      (Fig. 28: wkhtmltopdf Installer)

  4. Configure Odoo & Start the Server

    1. Open the command prompt, visit the Odoo directory, and locate the Odoo-bin file.
    2. Run the command:
      1. python odoo-bin -r db_user -w db_password --addons-path=addons -d demo_db

       

      Create Pipeline

      (Fig. 29: Command Prompt – Start Odoo Server)

    3. Here db_user is the newly created database user (choose it Odoo) and db_password will be its password (Odoo).
    4. Go to the browser and in the address bar, type localhost:8069 and hit enter.
    5. In the login screen, enter your email (admin) and password (admin) and Hit “Login”.

       

      Create Pipeline

      (Fig. 30: Start Odoo)
       

Why Am I Unable to Install Odoo?

If you are having trouble installing Odoo on Windows, there could be several reasons. Let us discuss them with solutions:

Python Version Problems: Verify that the Python version you have installed is compatible with Odoo 18.

Package Conflicts: Verify that the installed Python packages and the dependencies needed for Odoo 18 do not clash. 

Firewall or Antivirus Interference: Set up your antivirus or firewall program so that Odoo can connect to the designated port. 

Hopefully you can get over any challenges that come up throughout the installation procedure by taking care of these problems. 

 

Findings and Suggestions for installing Odoo 18 on Windows 

Installing Odoo on Windows isn’t always straightforward; a few things can cause hiccups. Here are some tips that might help: 

  • Back up your stuff first 
    Seriously, don’t skip this. If anything goes sideways during installation, you don’t want to lose important data. Just take a moment to save a copy before you begin. 

  • Stick to the official instructions 
    I know it can be tempting to skim the docs or wing it, but following Odoo’s official install guide step by step really makes a difference. It’s there to help you avoid common pitfalls. 

  • Test everything once you’re done 
    Don’t just assume it works after installation. Spend some time clicking around, trying features, and making sure nothing is broken. Catching problems early saves you headaches later. 

If you keep these in mind, your installation should go a lot smoother — and you’ll avoid a bunch of unnecessary frustration.

Odoo 19 is on the way! Check out our preview of Odoo 19 Features and Updates to get an early look at what’s expected in the next version

 

Conclusion

Hopefully, this guide was helpful for you to install Odoo in Windows. We are a certified Odoo development company and can deliver you customized solutions related to Odoo. If you still need any further assistance in concern with Odoo, please feel free to connect at [email protected].

Contact us

For Your Business Requirements

Text to Identify Refresh CAPTCHA