AUTOMATIC1111 - stable-diffusion-webui -- RuntimeError: Couldn't install torch #14579
Replies: 2 comments 1 reply
-
UPDATE: Just generates a different error |
Beta Was this translation helpful? Give feedback.
-
Have upgraded to ubuntu 22.04 |
Beta Was this translation helpful? Give feedback.
-
Hi
I'm new to the whole AI thing and keen to give it a try. I have started to setup AUTOMATIC1111 - stable-diffusion-webui using the automatic install instructions for Linux at https://github.com/AUTOMATIC1111/stable-diffusion-webui.
I have got as far as trying to start it after install using the "./webui.sh" and then later the "bash webui.sh" commands.
I originally ran ./webui.sh with python3.8 onboard and got the following...
/AI-/stable-diffusion-webui$ bash webui.sh
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################
################################################################
Running on me user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.8.10 (default, Nov 22 2023, 10:22:35)
[GCC 9.4.0]
Version: v1.7.0
Commit hash: cf2772f
Traceback (most recent call last):
File "launch.py", line 48, in
main()
File "launch.py", line 39, in main
prepare_environment()
File "/home/me/AI-/stable-diffusion-webui/modules/launch_utils.py", line 384, in prepare_environment
raise RuntimeError(
RuntimeError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check
......
then
......
someone suggested adding "--skip-torch-cuda-test to COMMANDLINE_ARGS" to webui-user.bat which i did but
got the same result.
......
then someone suggested to another user with similar issue adding python3.10 to their machine and running "bash webui.sh" instead
command used was "sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2"
this has now updated python to python3.10 2 and when i run the "bash webui.sh" command the other error has gone but now I get the following output...
:~/AI-/stable-diffusion-webui$ bash webui.sh
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################
################################################################
Running on me user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Cannot locate TCMalloc (improves CPU memory usage)
Python 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0]
Version: v1.7.0
Commit hash: cf2772f
Installing torch and torchvision
/home/me/AI-/stable-diffusion-webui/venv/bin/python3: No module named pip
Traceback (most recent call last):
File "/home/me/AI-/stable-diffusion-webui/launch.py", line 48, in
main()
File "/home/me/AI-/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/home/me/AI-/stable-diffusion-webui/modules/launch_utils.py", line 378, in prepare_environment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
File "/home/me/AI-/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/home/me/AI-/stable-diffusion-webui/venv/bin/python3" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
Error code: 1
....
I cant seem to get past this and find any help for this issue online
I am running Ubuntu 20.04
changed from 3rd party to tested NVIDIA driver
AND SPECS..
Adata XPG Spectrix D50 16Gb DDR4 3600MHz
MSI GeForce RTX 3050 VENTUS 2X 8Gb OC Graphics card
MSI B550M Pro-VDH WiFi motherboard
AMD Ryzen 7 5700X 8 Core 16 Thread 4.6Ghz AM4
I would be grateful for any help or suggestions
Beta Was this translation helpful? Give feedback.
All reactions