Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.7 (tags/v3.10.7:6cc6b13, Sep 5 2022, 14:08:36) [MSC v.1933 64 bit (AMD64)]
Commit hash: 98947d173e3f1667eba29c904f681047dea9de90
Installing torch and torchvision
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\launch.py", line 255, in
prepare_enviroment()
File "C:\ai\stable-diffusion-webui\launch.py", line 173, in prepare_enviroment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch")
File "C:\ai\stable-diffusion-webui\launch.py", line 34, in run
raise RuntimeError(message)
RuntimeError: Couldn't install torch.
Command: "C:\ai\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113
Error code: 2
stdout: Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu113
Collecting torch==1.12.1+cu113
stderr: ERROR: Exception:
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py", line 438, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py", line 483, in _prepare_linked_requirement
local_file = unpack_url(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py", line 165, in unpack_url
file = get_http_url(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\operations\prepare.py", line 106, in get_http_url
from_path, content_type = download(link, temp_dir.path)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\network\download.py", line 134, in call
resp = _http_get_download(self._session, link)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\network\download.py", line 117, in _http_get_download
resp = session.get(target_url, headers=HEADERS, stream=True)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\requests\sessions.py", line 600, in get
return self.request("GET", url, **kwargs)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_internal\network\session.py", line 518, in request
return super().request(method, url, *args, **kwargs)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\adapter.py", line 48, in send
cached_response = self.controller.cached_request(request)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\controller.py", line 155, in cached_request
resp = self.serializer.loads(request, cache_data, body_file)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\serialize.py", line 95, in loads
return getattr(self, "_loads_v{}".format(ver))(request, data, body_file)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\cachecontrol\serialize.py", line 186, in _loads_v4
cached = msgpack.loads(data, raw=False)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 125, in unpackb
ret = unpacker._unpack()
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 590, in _unpack
ret[key] = self._unpack(EX_CONSTRUCT)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 590, in _unpack
ret[key] = self._unpack(EX_CONSTRUCT)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 544, in _unpack
typ, n, obj = self._read_header()
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 486, in _read_header
obj = self._read(n)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\pip_vendor\msgpack\fallback.py", line 403, in _read
ret = self._buffer[i : i + n]
MemoryError
[notice] A new release of pip available: 22.2.2 -> 22.3.1
[notice] To update, run: C:\ai\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Press any key to continue . . .
Steps to reproduce the problem
starts this program
What should have happened?
program starts and gives a code you put into your browser
Commit where the problem happens
webui
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No response
Additional information, context and logs
No response
The screenshot shows you've highlighted the wrong file, are you sure it's webui-user.bat you can't open?
Another thing I see is that you have 2 webui-user files in that listing so make sure it's webui-user.bat and not the other.
You can also type cmd in the address bar of that folder and press enter so it opens the cmd program in that directory and then type webui-user.bat and it should load.
If its your first time things will download, it'll also look like it's doing nothing but just leave it, it is doing something you just can't see but then eventually it'll update in the cmd window adding other stuff until it gives an IP address for you.