# comfyui安装

#### 条件

- python 3.13 : <https://www.python.org/ftp/python/3.13.11/python-3.13.11-amd64.exe>
- vc13 : <https://aka.ms/vc14/vc_redist.x64.exe>
- git 

可以先运行cpu版本跑一个实例确定基础环境是好的，再跑GPU版把问题限定在驱动和cuda兼容性方面

#### 扩展管理器

```shell

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 后面的cu124表示版本号， 与cuda版本一致

```