Advertisement
loloof64

WebUi crash before Python is too recent

Apr 7th, 2025
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.26 KB | None | 0 0
  1. ➜  stable_diffusion ./webui.sh                            
  2.  
  3. ################################################################
  4. Install script for stable-diffusion + Web UI
  5. Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
  6. ################################################################
  7.  
  8. ################################################################
  9. Running on laurent user
  10. ################################################################
  11.  
  12. ################################################################
  13. Create and activate python venv
  14. ################################################################
  15.  
  16. ################################################################
  17. Launching launch.py...
  18. ################################################################
  19. glibc version is 2.39
  20. Check TCMalloc: libtcmalloc_minimal.so.4
  21. libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
  22. =============================================================================================
  23. INCOMPATIBLE PYTHON VERSION
  24.  
  25. This program is tested with 3.10.6 Python, but you have 3.12.3.
  26. If you encounter an error with "RuntimeError: Couldn't install torch." message,
  27. or any other error regarding unsuccessful package (library) installation,
  28. please downgrade (or upgrade) to the latest version of 3.10 Python
  29. and delete current Python and "venv" folder in WebUI's directory.
  30.  
  31. You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/
  32.  
  33.  
  34.  
  35. Use --skip-python-version-check to suppress this warning.
  36. =============================================================================================
  37. Python 3.12.3 (main, Feb  4 2025, 14:48:35) [GCC 13.3.0]
  38. Version: v1.10.1
  39. Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
  40. Installing torch and torchvision
  41. Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
  42. ERROR: Could not find a version that satisfies the requirement torch==2.1.2 (from versions: 2.2.0, 2.2.0+cu121, 2.2.1, 2.2.1+cu121, 2.2.2, 2.2.2+cu121, 2.3.0, 2.3.0+cu121, 2.3.1, 2.3.1+cu121, 2.4.0, 2.4.0+cu121, 2.4.1, 2.4.1+cu121, 2.5.0, 2.5.0+cu121, 2.5.1, 2.5.1+cu121, 2.6.0)
  43. ERROR: No matching distribution found for torch==2.1.2
  44. Traceback (most recent call last):
  45.  File "/home/laurent/Programmes/Programmation/ia/stable_diffusion/stable-diffusion-webui/launch.py", line 48, in <module>
  46.    main()
  47.  File "/home/laurent/Programmes/Programmation/ia/stable_diffusion/stable-diffusion-webui/launch.py", line 39, in main
  48.    prepare_environment()
  49.  File "/home/laurent/Programmes/Programmation/ia/stable_diffusion/stable-diffusion-webui/modules/launch_utils.py", line 381, in prepare_environment
  50.    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  51.  File "/home/laurent/Programmes/Programmation/ia/stable_diffusion/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
  52.    raise RuntimeError("\n".join(error_bits))
  53. RuntimeError: Couldn't install torch.
  54. Command: "/home/laurent/Programmes/Programmation/ia/stable_diffusion/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121
  55. Error code: 1
  56.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement