68 lines
1.3 KiB
Markdown
68 lines
1.3 KiB
Markdown
|
|
|
|
## Manual Install on Linux with NVIDIA GPU
|
|
|
|
#### Clone the repo
|
|
|
|
```
|
|
git clone git@github.com:comfyanonymous/ComfyUI.git
|
|
```
|
|
|
|
#### Install dependencies
|
|
|
|
Make sure you have cuda12+ installed.
|
|
|
|
Follow instruction on [NVIDIA's website](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Debian&target_version=11&target_type=deb_local)
|
|
|
|
```
|
|
wget https://developer.download.nvidia.com/compute/cuda/12.6.1/local_installers/cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb
|
|
```
|
|
|
|
```
|
|
sudo dpkg -i cuda-repo-debian11-12-6-local_12.6.1-560.35.03-1_amd64.deb
|
|
```
|
|
|
|
```
|
|
sudo cp /var/cuda-repo-debian11-12-6-local/cuda-*-keyring.gpg /usr/share/keyrings/
|
|
```
|
|
|
|
```
|
|
sudo add-apt-repository contrib
|
|
```
|
|
|
|
```
|
|
sudo apt-get update
|
|
```
|
|
|
|
```
|
|
sudo apt-get -y install cuda-toolkit-12-6
|
|
```
|
|
|
|
And install the driver
|
|
|
|
```
|
|
sudo apt-get install -y cuda-drivers
|
|
```
|
|
|
|
|
|
[Install Miniconda](https://docs.anaconda.com/free/miniconda/index.html#latest-miniconda-installer-links). This will help you install the correct versions of Python and other libraries needed by ComfyUI.
|
|
|
|
Create an environment with Conda.
|
|
|
|
```
|
|
conda create -n comfyenv
|
|
```
|
|
|
|
And activate it
|
|
|
|
```
|
|
conda activate comfyenv
|
|
```
|
|
|
|
Install python dependencies
|
|
|
|
```
|
|
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
|
|
```
|
|
|