Repository: stable-diffusion-webui
Issue: [Bug]: Cannot open WebUI (1.8.0)
Labels: bug-report

### 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
- [x] The issue has been reported before but has not been fixed yet

### What happened?

When I open the SD WebUI, It said RuntimeError: Couldn't install torch.

### Steps to reproduce the problem

1.press WebUI-user.bat
2.cannot open the WebUI : ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

### What should have happened?

WebUI can be opened

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

no

### Console logs

```Shell
Already up to date.
venv "C:\Users\Asus\Downloads\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.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4cf0d85b408b5
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)
Collecting torchvision==0.16.2
  Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.2%2Bcu121-cp310-cp310-win_amd64.whl (5.6 MB)
Requirement already satisfied: filelock in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (3.12.0)
Requirement already satisfied: typing-extensions in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (4.6.1)
Requirement already satisfied: sympy in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (1.12)
Requirement already satisfied: networkx in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (3.1)
Requirement already satisfied: jinja2 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (3.1.2)
Requirement already satisfied: fsspec in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torch==2.1.2) (2023.5.0)
Requirement already satisfied: numpy in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.16.2) (1.23.5)
Requirement already satisfied: requests in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.16.2) (2.31.0)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.16.2) (9.5.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from jinja2->torch==2.1.2) (2.1.2)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (1.26.16)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.16.2) (2023.5.7)
Requirement already satisfied: mpmath>=0.19 in c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages (from sympy->torch==2.1.2) (1.3.0)
Installing collected packages: torch, torchvision
  Attempting uninstall: torch
    Found existing installation: torch 2.0.1+cu118
    Uninstalling torch-2.0.1+cu118:
      Successfully uninstalled torch-2.0.1+cu118
  Rolling back uninstall of torch
  Moving to c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages\functorch\
   from C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Lib\site-packages\~unctorch
  Moving to c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages\nvfuser\
   from C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Lib\site-packages\~vfuser
  Moving to c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages\torch-2.0.1+cu118.dist-info\
   from C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Lib\site-packages\~orch-2.0.1+cu118.dist-info
  Moving to c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages\torch\
   from C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Lib\site-packages\~orch
  Moving to c:\users\asus\downloads\stable-diffusion-webui\venv\lib\site-packages\torchgen\
   from C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Lib\site-packages\~orchgen
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 452, in run
    installed = install_given_reqs(
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\req\__init__.py", line 72, in install_given_reqs
    requirement.install(
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\req\req_install.py", line 807, in install
    install_wheel(
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 731, in install_wheel
    _install_wheel(
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 648, in _install_wheel
    generated_console_scripts = maker.make_multiple(scripts_to_generate)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\distlib\scripts.py", line 436, in make_multiple
    filenames.extend(self.make(specification, options))
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 429, in make
    return super().make(specification, options)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\distlib\scripts.py", line 425, in make
    self._make_script(entry, filenames, options=options)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\distlib\scripts.py", line 325, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\distlib\scripts.py", line 249, in _write_script
    launcher = self._get_launcher('t')
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\distlib\scripts.py", line 404, in _get_launcher
    raise ValueError(msg)
ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: C:\Users\Asus\Downloads\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\modules\launch_utils.py", line 380, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "C:\Users\Asus\Downloads\stable-diffusion-webui\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "C:\Users\Asus\Downloads\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: 2
```


### Additional information

Nvidia GeForce GTX 1660 TI