Skip to content
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

[Bug]: Error code:1 Could't install torch #16879

Open
2 of 6 tasks
kazumaduy opened this issue Mar 5, 2025 · 1 comment
Open
2 of 6 tasks

[Bug]: Error code:1 Could't install torch #16879

kazumaduy opened this issue Mar 5, 2025 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@kazumaduy
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?

Unable to launch webui

Steps to reproduce the problem

  1. Open webui-user.bat
  2. Check console

What should have happened?

Launch the WebUI

What browsers do you use to access the UI ?

No response

Sysinfo

Worked on same PC before just did new clean windows install

Console logs

git: 'PULL' is not a git command. See 'git --help'.
'"E:\A1111\stable-diffusion-webui\venv\Scripts\activate.bat"' is not recognized as an internal or external command,
operable program or batch file.
venv "E:\A1111\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
Traceback (most recent call last):
  File "C:\Users\NotDuy\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\NotDuy\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\__main__.py", line 29, in <module>
    from pip._internal.cli.main import main as _main
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
    from pip._internal.cli.autocompletion import autocomplete
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
    from pip._internal.cli.main_parser import create_main_parser
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\main_parser.py", line 8, in <module>
    from pip._internal.cli import cmdoptions
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\cmdoptions.py", line 24, in <module>
    from pip._internal.cli.parser import ConfigOptionParser
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\parser.py", line 12, in <module>
    from pip._internal.configuration import Configuration, ConfigurationError
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\configuration.py", line 20, in <module>
    from pip._internal.exceptions import (
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\exceptions.py", line 13, in <module>
    from pip._vendor.requests.models import Request, Response
  File "E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\requests\__init__.py", line 43, in <module>
    from pip._vendor import urllib3
ImportError: cannot import name 'urllib3' from 'pip._vendor' (E:\A1111\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\__init__.py)
Traceback (most recent call last):
  File "E:\A1111\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "E:\A1111\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "E:\A1111\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 "E:\A1111\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "E:\A1111\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
Press any key to continue . . .

Additional information

No response

@kazumaduy kazumaduy added the bug-report Report of a bug, yet to be confirmed label Mar 5, 2025
@kazumaduy
Copy link
Author

Seems to work if I put the A1111 folder in my C: drive, but would like it to work in my bigger drive

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

1 participant