跳转到主要内容

comfyui安装

条件

可以先运行cpu版本跑一个实例确定基础环境是好d,在跑GPU版把问题限定在驱动和cuda兼容性方面

扩展管理器

cd custom_nodes/

git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager




# 确定cuda版本
nvidia-smi

# 卸载pytorch
pip uninstall torch torchvision torchaudio -y

# 安装对应的版本
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

# --index-url 与cuda版本一致