Skip to content

Instantly share code, notes, and snippets.

@doctorpangloss
Last active November 25, 2024 17:56
Show Gist options
  • Save doctorpangloss/4c7365294992fcfb5f5017fcd2d1dafe to your computer and use it in GitHub Desktop.
Save doctorpangloss/4c7365294992fcfb5f5017fcd2d1dafe to your computer and use it in GitHub Desktop.
Installing ComfyUI on macOS
# install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install python 3.12
brew install [email protected]
# link it
brew link [email protected]
# check that you have python installed and that it's python 3.12
python3 --version
# install UV to get everything working faster
curl -LsSf https://astral.sh/uv/install.sh | sh
# get comfyui
git clone https://github.com/comfyanonymous/ComfyUI.git ~/Documents/comfyui
cd ~/Documents/comfyui
# install it
uv venv --python 3.12 --seed
source .venv/bin/activate
uv pip install torch torchvision torchaudio --pre --extra-index-url https://download.pytorch.org/whl/nightly/cpu
uv pip install -r requirements.txt
# run comfyui
python main.py
cd ~/Documents/comfyui/
# activate your venv
source .venv/bin/activate
# run comfyui
python main.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment