Mac mini M4上通过GitHub源码安装ComfyUI
·
Mac mini M4 系统 Conda 版 ComfyUI 安装指南
系统准备
1. 安装 Miniforge3(ARM 版)
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh"
bash Miniforge3-MacOSX-arm64.sh
2. 安装系统依赖
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install cmake protobuf rust git wget
3.Conda 环境配置
conda create -n comfyui python=3.11
conda activate comfyui
4.安装 PyTorch(MPS 加速版)
conda install pytorch::pytorch torchvision torchaudio -c pytorch-nightly
验证安装:python -c “import torch; print(torch.backends.mps.is_available())” 应输出 True
5.项目部署(克隆 GitHub 仓库)
cd ~/Documents
git clone https://github.com/comfyanonymous/ComfyUI.git
6. 安装项目依赖
cd ComfyUI
pip install -r requirements.txt --no-cache-dir
7. 安装模型管理器
cd custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
cd ..
8. 运行服务
python main.py
访问 http://localhost:8188 开始使用
常见问题解决
依赖安装失败:尝试 pip3 install --upgrade pip setuptools wheel
MPS 加速未生效:确认 PyTorch 版本 ≥2.3.0
启动报错:删除 ComfyUI/models 目录后重试
模型下载:推荐模型下载地址
更多推荐



所有评论(0)