Using Akiba’s stable diffusion integration package to report an error, the reason is that python was installed and uninstalled later, and then anaconda and some other software have built-in python. I first searched for python on the C drive and deleted all the files found. Because the integration package of Akiba has python, I still report an error when I run it. After searching for a long time, I finally found the python configuration file, in E:\AI\AI2\sd-webui-aki-v4.1\sd-webui-aki- In the pyvenv.cfg here in v4.1\venv
The python location here is changed to the location of the autumn leaves integration package
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 '
Press any key to continue. . .
changed to
After changing
succeeded
can run
Changed the location and it worked
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
Finally, the direct launcher installation is successful
report error
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
Please press any key to continue. . .
This is in the pyvenv.cfg in E:\AI\AI2\sd-webui-aki-v4.1\sd-webui-aki-v4.1\venv, just modify it according to the above, and then report an error git
encountered A git reported an error, saying that the hash value was wrong, and then I reinstalled git, Git
The installation was successful