Repository: stable-diffusion-webui
Issue: [Bug]: Error code: 2
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Could not install torch, requests, torchvision

### Steps to reproduce the problem

1. Installed python (3.10.6)
2. Installed git
3. Download the stable-diffusion-webui repository
4. Launched webui-user.bat
5. Give error after a few minutes

### What should have happened?

Could not install torch and torchvision

### Commit where the problem happens

installation

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
No
```


### List of extensions

No

### Console logs

```Shell
venv "D:\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)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
Collecting torch==1.13.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-win_amd64.whl (2255.4 MB)
Collecting torchvision==0.14.1+cu117
  Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-win_amd64.whl (4.8 MB)
Requirement already satisfied: typing-extensions in d:\stable-diffusion-webui\venv\lib\site-packages (from torch==1.13.1+cu117) (4.5.0)
Collecting requests
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.14.1+cu117) (9.4.0)
Requirement already satisfied: numpy in d:\stable-diffusion-webui\venv\lib\site-packages (from torchvision==0.14.1+cu117) (1.24.2)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.14.1+cu117) (1.26.15)
Requirement already satisfied: idna<4,>=2.5 in d:\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.14.1+cu117) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.14.1+cu117) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in d:\stable-diffusion-webui\venv\lib\site-packages (from requests->torchvision==0.14.1+cu117) (2022.12.7)
Installing collected packages: torch, requests, torchvision
ERROR: Exception:
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 160, in exc_logging_wrapper
    status = run_func(*args)
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 247, in wrapper
    return func(self, options, args)
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 507, in run
    installed = install_given_reqs(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\req\__init__.py", line 73, in install_given_reqs
    requirement.install(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\req\req_install.py", line 796, in install
    install_wheel(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 729, in install_wheel
    _install_wheel(
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 589, in _install_wheel
    file.save()
  File "D:\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\operations\install\wheel.py", line 388, in save
    shutil.copyfileobj(f, dest)
  File "C:\Users\Sasugadesune\AppData\Local\Programs\Python\Python310\lib\shutil.py", line 195, in copyfileobj
    buf = fsrc_read(length)
  File "C:\Users\Sasugadesune\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 925, in read
    data = self._read1(n)
  File "C:\Users\Sasugadesune\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1015, in _read1
    self._update_crc(data)
  File "C:\Users\Sasugadesune\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 943, in _update_crc
    raise BadZipFile("Bad CRC-32 for file %r" % self.name)
zipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/cublas64_11.dll'
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\launch.py", line 380, in <module>
    prepare_environment()
  File "D:\stable-diffusion-webui\launch.py", line 284, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "D:\stable-diffusion-webui\launch.py", line 97, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "D:\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Error code: 2
```


### Additional information

I'll have 16gb RAM