Member-only story
Install PostgreSQL 14.7 on macOS
In this guide, you will learn how to set up PostgreSQL 14.7 on your MacBook using Homebrew, a widely-used package manager for macOS. The steps are straightforward and include:
- Install Homebrew
- Install PostgreSQL
- Download the Northwind PostgreSQL SQL file
- Create a New PostgreSQL Database
- Import the Northwind SQL file
- Verify the Northwind database installation
- Connect to the Database Using Jupyter Notebook

Prerequisites
Ensure you have a MacBook or iMac running macOS 10.13 or later.
Install Xcode Command Line Tools
To start, you need to install the Xcode Command Line Tools, which are essential for software development on your Mac.
- Open the Terminal app (located in Applications > Utilities) and enter the command:
xcode-select --install
2. A pop-up window will prompt you to install the Command Line Tools. Click “Install” to proceed. After installation is complete, move on to the next step.