ComfyUI is a popular UI for Stable Diffusion. ComfyUI.
However, information is scattered, and
・Installer version or Git version?
・What is venv?
・Which CUDA / PyTorch should I install?
・The screen appears, but the buttons don't respond
These are common pitfalls that make the initial setup difficult.
In this article, I will summarize the
steps to stably install the Git version of ComfyUI on a Windows + NVIDIA GPU environment,
including the points where I actually got stuck.
OS: Windows 64bit
Python: 3.10
CUDA: 12.1
Conclusion: The "Git version + venv" is the right choice for ComfyUI
First, the conclusion.
・Installer version → Easy, but hard to fix when trouble occurs
・Git version + venv → A bit tedious at first, but easier in the long run
Reasons
・Python / torch / extensions can be completely isolated
・Easy to rebuild even if it breaks
・Better compatibility with Manager and custom_nodes
Get ComfyUI via Git
Create a folder in your preferred location and run it in PowerShell.
git clone https://github.com/comfyanonymous/ComfyUI.git cd ComfyUI
Create a Python virtual environment (venv)
python -m venv venv
In PowerShell, it may be blocked by the execution policy.
In that case, run the following just once.
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
Activate the virtual environment.
venv\Scripts\activate
If successful, (venv) will be displayed.
Install PyTorch (CUDA-supported version)
Example for RTX 30 series + CUDA 12.1.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
For CUDA 11.8, click here.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Installation check.
python -c "import torch; print(torch.cuda.is_available())"
If it returns True, you are good to go.
Install ComfyUI dependencies
pip install -r requirements.txt
Launch ComfyUI
python main.py
If the following is displayed, it is a success.
Running on http://127.0.0.1:8188
Access
http://127.0.0.1:8188
in your browser.
If the screen appears but buttons do not respond
This is often not an issue with ComfyUI itself.
Examples of causes
- Browser extensions (ad blockers, etc.)
- Security features
- Edge-specific behavior
In fact, there have been cases where
it was unusable in Edge but worked normally in Chrome
.
Solutions
- Open in Chrome
- Turn off browser extensions
- Open in Incognito mode
Installing ComfyUI-Manager
An essential tool to make extension management easier.
cd custom_nodes git clone https://github.com/ltdrdata/ComfyUI-Manager.git
When you restart ComfyUI, "Manager" will appear in the top right.
Troubleshooting when Manager or extensions seem suspicious
If the UI is broken, check in safe mode.
python main.py --disable-all-custom-nodes
If it is normal here,
-> one of the custom_nodes is the cause.
If you want to temporarily move Manager out of the way,
just rename the folder.
ComfyUI-Manager → ComfyUI-Manager_DISABLED
To restore it, just delete _DISABLED.
For those who find launching tedious (creating a .bat file)
Create a start.bat file.
@echo off cd /d %~dp0 call venv\Scripts\activate python main.py pause
You will be able to launch it with a single double-click.
Summary
・ComfyUI is most stable using Git + venv
・Always manually specify the CUDA-compatible torch
・UI issues are often caused by the browser
・Manager is convenient, but get into the habit of isolating issues
Once you get past the initial setup,
ComfyUI becomes the "most robust and flexible UI available."