Table of contents
1. Cause
The recommended version of stable-diffusion-webui is Python 3.10. If other versions of Python are installed in the computer, it will warn that Python 3.10 is recommended.
Official installation tutorial Automatic Installation on Windows
- Install Python 3.10.6 (Newer version of Python does not support
torch), checking “Add Python to PATH”.- Install git.
- Download the stable-diffusion-webui repository, for example by
running git clone
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.- Run webui-user.bat from Windows Explorer as normal,
non-administrator, user.
Two, the solution
Open the Windows system properties and find the environment variables
Edit Path under User Variables
Move Python310 to the top and confirm
View Python version in PowerShell
If you are viewing other versions of Python, it means that your Python environment variables are configured in the system variables, find Path in the system variables, and delete the corresponding environment variables. If it still does not work, uninstall other versions of Python
Go to the directory where stable-diffusion-webui is installed and delete everything in venv
the folder
Run webui-user.bat
to re- download the configuration environment