- Download and install Anaconda, which includes the conda package manager.
- Verify successful installation by running
conda --version
in the command prompt (no errors = success). - Set Up a Conda Environment
- Create a dedicated environment named env_sdw2 with Python 3.10.6
-
conda create -n env_sdw2 python=3.10.6
-
- Clone Stable Diffusion WebUI
- Navigate to your desired folder, right-click, and select ”Open Git Bash Here”.
- git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
- This creates a
stable-diffusion-webui
folder.
- Launch Setup
- Open Command Prompt as Administrator.
- Navigate to the cloned folder (adjust path as needed):
- cd C:\Workstation\Python\AI\stable-diffusion-webui-2
- Activate the conda environment:
-
conda activate env_sdw2
-
webui-user.bat
- Start Stable Diffusion WebUI (first launch will download dependencies):
- Successful launch will display a local URL (e.g., http://127.0.0.1:7860).
Key Notes
- Time-consuming: Initial setup may take hours due to large downloads.
- Admin rights required for proper dependency installation.
- Conda environment isolates dependencies for stability.
extra words
- This tutorial is specifically designed for complete beginners.While it may appear to have many steps and seem complicated, each one is actually very simple.
- For programmers, concepts like environment variables, administrator permissions, and the command prompt (cmd) are common knowledge, but they can be confusing for newcomers.
- In reality, there are many ways to install Stable Diffusion WebUI. Some companies or open-source communities provide ready-to-use installation packages, eliminating the need for this “manual” installation approach.