Stable Diffusion WebUI Tutorial Series Part 1 – How to Install It ?

Silicon Gamer

10/06/2024

updated 14/05/2025

Stable Diffusion WebUI

 

  1. Download and install ​Anaconda, which includes the conda package manager.
  2. Verify successful installation by running conda --version in the command prompt (no errors = success).
  3. Set Up a Conda Environment
  4. Create a dedicated environment named env_sdw2 with Python 3.10.6
    1. conda create -n env_sdw2 python=3.10.6
      
  5. Clone Stable Diffusion WebUI
    1. Navigate to your desired folder, ​right-click, and select ​​”Open Git Bash Here”​.
    2. git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
    3. This creates a stable-diffusion-webui folder.
  6. Launch Setup
    1. Open ​Command Prompt as Administrator.
    2. Navigate to the cloned folder (adjust path as needed):
    3. cd C:\Workstation\Python\AI\stable-diffusion-webui-2
    4. Activate the conda environment:
    5. conda activate env_sdw2  
    6. webui-user.bat
    7. Start Stable Diffusion WebUI (first launch will download dependencies):
  7. 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.

 

 

发表评论