Skip to Content

How to Install Odoo 19 on macOS

Install Odoo 19 on a Mac (Apple Silicon or Intel) with Homebrew, Python 3.12 and PostgreSQL 16 for local development.
November 21, 2026 by

Install Odoo 19 on macOS

Odoo is an open-source suite of business apps for sales, CRM, invoicing, inventory, manufacturing and more. Many Odoo developers and consultants work on a Mac. In this tutorial we will install Odoo 19 on macOS (Apple Silicon or Intel) from source using Homebrew, Python 3.12 and PostgreSQL 16, so you can develop modules and test Odoo locally. If you prefer containers, our Docker guide also works on macOS.

Prerequisites

  • macOS 13 Ventura or later, on Apple Silicon or Intel
  • Xcode Command Line Tools (run xcode-select --install)
  • At least 8 GB of RAM

Conventions

# – run the command with root privileges, either as the root user or with sudo
$ – run the command as a regular (non-root) user

Step 1. Install Homebrew

Homebrew is the package manager for macOS. Open Terminal and run the official installer:

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the instructions it prints at the end to add Homebrew to your PATH.

Step 2. Install Dependencies

$ brew install python@3.12 postgresql@16 git openldap libpq

Check Python:

$ python3.12 --version
Python 3.12.x

Step 3. Start PostgreSQL

$ brew services start postgresql@16

Homebrew's PostgreSQL creates a superuser with your macOS username, so Odoo can connect as you without a password. Check it:

$ psql postgres -c "select version();"

Step 4. Install Wkhtmltopdf

Download the macOS package of wkhtmltopdf 0.12.6 (file ending in macos-cocoa.pkg) from the wkhtmltopdf packaging releases on GitHub and double-click it to install. On Apple Silicon Macs it runs through Rosetta 2. Verify:

$ wkhtmltopdf --version

Step 5. Download Odoo 19 and Create a Virtual Environment

$ mkdir -p ~/odoo && cd ~/odoo
$ git clone https://github.com/odoo/odoo --depth 1 --branch 19.0 odoo19
$ python3.12 -m venv venv
$ source venv/bin/activate

Step 6. Install Python Packages

(venv) $ pip install --upgrade pip wheel
(venv) $ export PATH="$(brew --prefix postgresql@16)/bin:$PATH"
(venv) $ export LDFLAGS="-L$(brew --prefix openldap)/lib" CPPFLAGS="-I$(brew --prefix openldap)/include"
(venv) $ pip install -r odoo19/requirements.txt

The PATH and flags help pip find pg_config and the LDAP headers. If python-ldap still fails to build and you do not need LDAP login, remove the python-ldap line from requirements.txt and run the install again.

Step 7. Start Odoo 19

(venv) $ cd odoo19
(venv) $ python odoo-bin --addons-path=addons -d odoo19dev

Open http://localhost:8069 in your browser and log in. Press Ctrl+C in Terminal to stop Odoo. Next time, activate the venv and run the same command.

Conclusion

Congratulations! You have successfully installed Odoo 19. Open your browser, create your first database and start installing the apps your business needs. For more options, check the official Odoo documentation, or see our Odoo 19 installation guide for every platform.

Of course, you don't have to install Odoo 19 yourself. As a CloudPk client you can ask our Odoo team to install, configure, host and maintain Odoo for you, on our fully managed SaaS or on your own server. Book a free consultation, or message us on WhatsApp +92 302 0600001, and we will take care of it.

PS. If this guide helped you, please share it with your friends on social networks, or ask a question in our Odoo Help Forum. Want to learn more? Take our free course Install and Administer Odoo 19.

How to Install Odoo 19 on Windows with WSL 2
Run Odoo 19 on Ubuntu 24.04 inside Windows using WSL 2: the same setup as a Linux production server.