stable-diffusion-webui 更换 Python 版本

简介: stable-diffusion-webui 更换 Python 版本

一、原因

stable-diffusion-webui 推荐版本是 Python 3.10 ,如果电脑中安装了其他版本到Python,会警告推荐使用Python 3.10版本。

官方安装教程 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.

二、解决方法

打开Windows的系统属性,找到环境变量

编辑用户变量下的Path

将Python310移到最上,确定即可

PowerShell中查看Python版本

如果查看的还是Python其他版本,那么说明你的Python环境变量配置到了系统变量中,在系统变量中找到Path,删除对应的环境变量,如果还是不行,则卸载其他版本的Python


来到安装 stable-diffusion-webui 的目录下,删除 venv 文件夹里所有的东西

运行 webui-user.bat 重新下载配置环境

目录
相关文章
|
2月前
|
测试技术 程序员 数据库
Python 3.9 beta2 版本发布了,看看这 7 个新的 PEP 都是什么?
Python 3.9 beta2 版本发布了,看看这 7 个新的 PEP 都是什么?
28 0
|
2月前
|
Python
Python 3.10 版本采纳了首个 PEP,中文翻译即将推出
Python 3.10 版本采纳了首个 PEP,中文翻译即将推出
18 3
|
2月前
|
开发者 Python
开发者请注意:Python2 的最后版本将于 4 月发布,但它确实是在 1 月 1 日就寿命终止了!
开发者请注意:Python2 的最后版本将于 4 月发布,但它确实是在 1 月 1 日就寿命终止了!
28 1
|
2月前
|
机器学习/深度学习 PyTorch 算法框架/工具
Python冷知识:如何找出新版本增加或删除了哪些标准库?
Python冷知识:如何找出新版本增加或删除了哪些标准库?
25 0
|
2天前
|
开发者 Python
six,一个神奇的 Python 版本兼容工具库!
six,一个神奇的 Python 版本兼容工具库!
11 4
|
2天前
|
Ubuntu Python
ubuntu升级Python版本
现在,你已成功升级了Python版本并可以使用新版本进行开发和运行程序。
13 1
|
11天前
|
Python
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
IDA3.12版本的python,依旧报错IDAPython: error executing init.py.No module named ‘impRefer to the message win
|
25天前
|
Python Windows
【Python】Windows如何在cmd中切换python版本
【Python】Windows如何在cmd中切换python版本
|
1月前
|
算法 NoSQL JavaScript
常见的限流算法-python版本
常见的限流算法-python版本
21 0
常见的限流算法-python版本
|
2月前
|
Java 程序员 PHP
Python 如何移除旧的版本特性,如何迎接新的特性?
Python 如何移除旧的版本特性,如何迎接新的特性?
21 0