Skip to content

[Bug]: #16891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 6 tasks
Sensanko52123 opened this issue Mar 14, 2025 · 2 comments
Open
3 of 6 tasks

[Bug]: #16891

Sensanko52123 opened this issue Mar 14, 2025 · 2 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@Sensanko52123
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

torch don't istalling

Steps to reproduce the problem

  1. Start UI
  2. Wait

What should have happened?

WebUI should start

What browsers do you use to access the UI ?

No response

Sysinfo

can't generate

Console logs

venv "V:\stable-diffusion-webui\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: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121
Collecting torch==2.1.2
  Using cached https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch==2.1.2 from https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl#sha256=9925143dece0e63c5404a72d59eb668ef78795418e96b576f94d75dcea6030b9:
        Expected sha256 9925143dece0e63c5404a72d59eb668ef78795418e96b576f94d75dcea6030b9
             Got        3edee9eaa79a7a477e6dbd294393416de5527aac9d81ce5a9b37df6759cda4b8

Traceback (most recent call last):
  File "V:\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "V:\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "V:\stable-diffusion-webui\modules\launch_utils.py", line 381, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "V:\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "V:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121
Error code: 1

Additional information

added git pull and --autolaunch

@Sensanko52123 Sensanko52123 added the bug-report Report of a bug, yet to be confirmed label Mar 14, 2025
@missionfloyd
Copy link
Collaborator

It looks like the cached copy of torch is corrupt. Run pip cache remove torch or pip cache purge and try again.

@minhaj3
Copy link

minhaj3 commented Mar 18, 2025

After doing pip cache purge, you can install torch with something like this:
pip install --no-cache-dir torch==2.1.2 torchvision==0.16.2 --extra-index-url https://download.pytorch.org/whl/cu121

Or you can also try some earlier version of torch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

3 participants