Installing ComfyUI on Mac M1/M2


Are you eager to explore the world of ComfyUI on your Mac M1/M2 but unsure where to start? Look no further! We’ve put together a comprehensive guide to help you get ComfyUI up and running on your machine. Follow these step-by-step instructions to unlock the creative possibilities of ComfyUI:

Step 1: Ensure Compatibility

Before diving into the installation process, ensure that your Mac is running MacOS 12.3 or higher to support MPS acceleration. To check your MacOS version, click on the Apple icon in the top left corner and select “About this Mac.”

Step 2: Install Homebrew

Homebrew is a powerful package manager for Mac, and it’s a prerequisite for ComfyUI. Open your Terminal app and paste the following command, then press return:

/bin/bash -c "$(curl -fsSL"

Step 3: Install Required Packages

In a new Terminal window, install essential packages using Homebrew by running the following command:

brew install cmake protobuf rust python@3.10 git wget

Step 4: Clone ComfyUI

Clone the ComfyUI repository to your local storage by running this command in Terminal:

git clone

Step 5: Install ComfyUI

  • Navigate to the ComfyUI directory:
  • cd ComfyUI
  • Create a virtual environment:
  • python -m venv venv
  • Install PyTorch within the virtual environment:
  • ./venv/bin/pip install torch torchvision torchaudio
  • Install the required Python packages listed in the requirements.txt file:
  • ./venv/bin/pip install -r requirements.txt

Step 6: Download a Stable Diffusion Model

You’ll need a stable diffusion model to run ComfyUI. You can either use the provided download link or use this command to download the model and place it in the “models/checkpoints” folder:

wget -P models/checkpoints

Step 7: Start ComfyUI

Launch ComfyUI by running the following command:


Congratulations! You’ve successfully installed ComfyUI on your Mac M1/M2. Now you can explore its creative features and start generating amazing content.

Updating ComfyUI

To keep your ComfyUI installation up to date, simply run the following command within the ComfyUI folder:

git pull

Installing ComfyUI on your Mac M1/M2 opens the door to creativity. Follow the steps, keep it updated, and unleash your artistic potential.Enjoy your ComfyUI journey, and let your creativity run wild!

Leave a Comment