This commit is contained in:
lindsayfowler 2025-04-11 11:52:08 -04:00 committed by GitHub
commit b7cb05d281
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,10 +243,18 @@ After this you should have everything installed and can proceed to running Comfy
You can install ComfyUI in Apple Mac silicon (M1 or M2) with any recent macOS version.
1. Install pytorch nightly. For instructions, read the [Accelerated PyTorch training on Mac](https://developer.apple.com/metal/pytorch/) Apple Developer guide (make sure to install the latest pytorch nightly).
1. Follow the [ComfyUI manual installation](#manual-install-windows-linux) instructions for Windows and Linux.
1. Install the ComfyUI [dependencies](#dependencies). If you have another Stable Diffusion UI [you might be able to reuse the dependencies](#i-already-have-another-ui-for-stable-diffusion-installed-do-i-really-have-to-install-all-of-these-dependencies).
1. Launch ComfyUI by running `python main.py`
In Terminal, cd into your desired installation folder.
```git clone https://github.com/comfyanonymous/ComfyUI.git```
```cd ComfyUI```
Make a virtual environment:
```python3.12 -m venv .venv```
```source .venv/bin/activate```
Install the Nightly build of pytorch (must be this build or installing requirements will fail):
```pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu```
Install requirements
```pip install -r requirements.txt```
Run
```python main.py```
> **Note**: Remember to add your models, VAE, LoRAs etc. to the corresponding Comfy folders, as discussed in [ComfyUI manual installation](#manual-install-windows-linux).