Windows Native Installation Tutorial for ComfyUI
Installing ComfyUI natively on a Windows system allows you to deeply understand its installation process and dependency configuration, laying a solid foundation for subsequent usage and optimization. Here are the detailed installation steps:
I. Preparation
(1) Hardware Requirements
GPU: ComfyUI relies on the GPU for image generation calculations to improve operating efficiency. It is recommended to use NVIDIA - series graphics cards, such as the RTX 30 series or higher versions, to achieve a more excellent performance experience.
Memory: At least 16GB of system memory is required. If you want to handle complex image tasks, 32GB or more memory is more appropriate.
Storage: Reserve at least 10GB of available disk space for installing ComfyUI and its related dependencies and model files.
(2) Software Requirements
Operating System: It needs to be Windows 10 or later versions.
Python Environment: ComfyUI is developed based on Python. You need to install Python 3.10. You can download and install it from the official Python website (https://www.python.org/downloads/). When installing, check the "Add Python to PATH" option to ensure that the system can correctly recognize Python commands.
Git Tool: It is used to clone the ComfyUI project from the code repository. You can download and install it from the official Git website (https://git-scm.com/downloads).
II. Download ComfyUI
Open "Command Prompt" or "PowerShell".
Enter the cloning command in the command line. For example, to clone the ComfyUI project to the "C:\ComfyUI" directory:
git clone https://github.com/comfyanonymous/ComfyUI.git C:\ComfyUI
The time required for the cloning process depends on your network speed. Please be patient and wait for the download to complete.
III. Install Dependencies
Enter the ComfyUI project directory. In the command line, enter:
cd C:\ComfyUI
Run the command to install Python dependency packages:
pip install -r requirements.txt
When installing the dependency packages, pip will download and install multiple dependent libraries. This process may take some time. Make sure your network connection is stable. If the installation fails, refer to the error message and try to update the pip version or resolve dependency conflicts.
IV. Launch ComfyUI
Find the "launch_windows.bat" file in the ComfyUI directory and double - click to run it. The system will automatically launch ComfyUI and open the user interface of ComfyUI in the browser. If the browser does not open automatically, manually enter "http://127.0.0.1:8188" in the browser address bar to access it.
Through the above steps, you have successfully completed the native installation of ComfyUI on your Windows system. If you encounter any problems during the installation process, you can refer to the official ComfyUI documentation, community forums, or seek help from experienced users.