使用秋叶的stable diffusion整合包报错,原因是原先安装过python,后面卸载了,然后还有anaconda和一些其他软件有自带的python,我先在c盘搜索python,删除搜索到的所有文件,因为秋叶的整合包有python,我运行还是报错,找了很久,终于找到了python的配置文件,在e:\ai\ai2\sd-webui-aki-v4.1\sd-webui-aki-v4.1\venv这里的pyvenv.cfg里
这里的python位置改为秋叶整合包的位置
venv "e:\ai\ai2\sd-webui-aki-v4.1\sd-webui-aki-v4.1\venv\scripts\python.exe"
no python at '"d:\python\python.exe'
请按任意键继续. . .
改成
改了后
成功了
能运行了
把位置改了就成功了
home = d:\ai\sd-webui-aki-v4.1\sd-webui-aki-v4.1\venv\scripts\python.exe
include-system-site-packages = true
version = 3.10.6
最后直接点的启动器安装成功
报错
venv "g:\sd-webui-aki-v4.2\venv\scripts\python.exe"
python 3.10.6 (tags/v3.10.6:9c7b4bd, aug 1 2022, 21:53:49) [msc v.1932 64 bit (amd64)]
version: 1.5.1
commit hash: <none>
installing torch and torchvision
g:\sd-webui-aki-v4.2\venv\scripts\python.exe: no module named pip
traceback (most recent call last):
file "g:\sd-webui-aki-v4.2\launch.py", line 39, in <module>
main()
file "g:\sd-webui-aki-v4.2\launch.py", line 30, in main
prepare_environment()
file "g:\sd-webui-aki-v4.2\modules\launch_utils.py", line 311, in prepare_environment
run(f'"{python}" -m {torch_command}', "installing torch and torchvision", "couldn't install torch", live=true)
file "g:\sd-webui-aki-v4.2\modules\launch_utils.py", line 113, in run
raise runtimeerror("\n".join(error_bits))
runtimeerror: couldn't install torch.
command: "g:\sd-webui-aki-v4.2\venv\scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
error code: 1
请按任意键继续. . .
这个是在e:\ai\ai2\sd-webui-aki-v4.1\sd-webui-aki-v4.1\venv这里的pyvenv.cfg里按照上面修改就好了,然后又报错git
遇到一个git报错,说是哈希值不对,然后我重装了git,git
安装成功了
发表评论