stable-diffusion-webui change Python version

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

  1. Install Python 3.10.6 (Newer version of Python does not support
    torch), checking “Add Python to PATH”.
  2. Install git.
  3. Download the stable-diffusion-webui repository, for example by
    running git clone
    https://github.com/AUTOMATIC1111/stable-diffusion-webui.git.
  4. 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

insert image description here

Edit Path under User Variables
insert image description here

Move Python310 to the top and confirm

insert image description here

View Python version in PowerShell

insert image description here

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

insert image description here

Go to the directory where stable-diffusion-webui is installed and delete everything in venvthe folder

insert image description here

Run webui-user.batto re- download the configuration environment

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/qq_46207024/article/details/131045866