
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.
Table of Contents
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) userStep 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 libpqCheck Python:
$ python3.12 --versionPython 3.12.xStep 3. Start PostgreSQL
$ brew services start postgresql@16Homebrew'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 --versionStep 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/activateStep 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.txtThe 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 odoo19devOpen 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.