1、确认macOS芯片,打开终端开始安装。
2、安装 Homebrew(软件包管理器)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
安装好后执行:brew --version
出现版本号说明成功。
3、安装git
brew install git
检查
git --version
4、安装python:
brew install git python@3.10
5、创建 Stable Diffusion 文件夹
cd ~
mkdir stable-diffusion
cd stable-diffusion
6、下载 ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
7、创建虚拟环境安装依赖
(mac自带python版本,需要给comfyUI制定python版本)
cd ~/stable-diffusion/ComfyUI
/opt/homebrew/bin/python3.10 -m venv venv
然后检查:
python3 --version # 显示 3.10.19
source venv/bin/activate
pip install --upgrade pip
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements.txt
8、安装 ComfyUI Manager(管理器)
cd ~/ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
9、运行 ComfyUI
"cd ~/stable-diffusion/ComfyUI"
echo "source venv/bin/activate"
python main.py
打开浏览器http://127.0.0.1:8188
(每次启动 ComfyUI 都要先激活 venv:
source venv/bin/activate)
10、结束
结束进程. control+C
退出环境. deactivate
评论 ()
发表评论
暂无评论,快来发表第一条评论吧!