Setup instructions for Windows
December 25, 2025 ยท View on GitHub
Dependencies:
- Python 3.13 (3.14 is currently unsupported)
- Git (Recommended)
Python install:
-
Open Terminal (PowerShell)
-
Paste this and press enter to install Python 3.13:
winget install --id=Python.Python.3.13 -e
Git install (optional):
-
Open Terminal (PowerShell)
-
Paste this and press enter to install Git:
winget install --id=Git.Git -e
Setup:
- Using Terminal (PowerShell):
-
Ensure that execution of scripts is allowed (this is just required to run the
sdcpp_webui_windows.ps1script; I'm not responsable for any other scripts that you may run in your system. You're encouraged to ALWAYS read the content of a script, even this, before executing it).-
Run PowerShell as an Administrator and execute this:
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -
Close PowerShell Administrator.
-
-
Get the code using one of the following methods:
-
1A: Clone the repository with Git (recommended):
-
Open Terminal (PowerShell) in a location of your choice and run:
git clone https://github.com/daniandtheweb/sd.cpp-webui
-
-
1B: Manual Download
- Download and extract in a location of your choice (e.g., your Desktop).
-
Move inside of
sd.cpp-webui's directory:cd sd.cpp-webui -
Obtain the
stable-diffusion.cppbinary:-
Compile from source:
-
Obtain the source code:
git clone https://github.com/leejet/stable-diffusion.cpp.git -
Compile following the instructions from
stable-diffusion.cpp's repository. -
Copy the compiled
sd.exebinary to the mainsd.cpp_webuidirectory.
-
-
Download a precompiled binary:
-
Download a precompiled release from the Releases section of
stable-diffusion.cpp's repository. -
Copy the
sd.exebinary to the mainsd.cpp_webuidirectory.
-
-
-
Execute the launch script, this will automatically create a virtual environment and install all the necessary Python packages:
.\sdcpp_webui_windows.ps1 --autostart
-
To see all available arguments and options, run:
.\sdcpp_webui_windows.ps1 --help
Updating the WebUI:
-
Open Terminal (PowerShell) inside of
sd.cpp-webui's directory and execute this:git pull