Open Madbat1 opened 5 months ago
Maybe you can install torch-2.1.2+cu121 manually, by command pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121
.
(And if you are in China, the speed of connecting to this pytorch official website will be slow, you can use tsinghua mirror to download pytorch, by command pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://pypi.tuna.tsinghua.edu.cn/simple
)
I'm in Poland. did it and here is the error.
C:\Users\User>pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu121 Looking in indexes: https://download.pytorch.org/whl/cu121 Collecting torch==2.1.2 Downloading https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB) ---------------------------------- ----- 2.2/2.5 GB 1.7 MB/s eta 0:03:10 ERROR: Exception: Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher yield File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read data = self._fp.read(amt) if not fp_closed else b"" File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read data = self.__fp.read(amt) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read s = self.fp.read(amt) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto return self._sock.recv_into(b) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into return self.read(nbytes, buffer) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
[notice] A new release of pip available: 22.2.1 -> 24.0 [notice] To update, run: python.exe -m pip install --upgrade pip
I'm having the same problem here, Spain. I tried installing torch manually before, but it try to install it anyways.
Proof: PS C:\Users\Public\sd.webui> python -c "import torch; print(torch.version)" 2.1.2+cpu
Error: PS C:\Users\Public\sd.webui> .\run.bat Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Version: v1.9.0 Commit hash: adadb4e3c7382bf3e4f7519126cd6c70f4f8557b Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121 Collecting torch==2.1.2 Downloading https://download.pytorch.org/whl/cu121/torch-2.1.2%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB) --------------------------------------- 0.1/2.5 GB 1.6 MB/s eta 0:24:56 ERROR: Exception: Traceback (most recent call last): File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\urllib3\response.py", line 438, in _error_catcher yield File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\urllib3\response.py", line 561, in read data = self._fp_read(amt) if not fp_closed else b"" File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\urllib3\response.py", line 527, in _fp_read return self._fp.read(amt) if amt is not None else self._fp.read() File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 98, in read data: bytes = self.__fp.read(amt) File "http\client.py", line 465, in read File "socket.py", line 705, in readinto File "ssl.py", line 1274, in recv_into File "ssl.py", line 1130, in read TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\Public\sd.webui\system\python\lib\site-packages\pip_internal\cli\base_command.py", line 180, in exc_logging_wrapper status = run_func(*args) ...... etc
The same error happened here. But when I read the installation page again I realized that my version of python is newer than the one supported by pytorch: python 3.10.6.
After creating a virtual environment with the correct version of python everything worked correctly here.
Hope this helps you.
The same error happened here. But when I read the installation page again I realized that my version of python is newer than the one supported by pytorch: python 3.10.6.
After creating a virtual environment with the correct version of python everything worked correctly here.
Hope this helps you.
what version did you use and how to do it?
The python version is 3.10.6 as pointed by README file.
I've created with conda:
conda create -n stable-diffusion-webui python=3.10.6
After this, activate the envinronment:
conda activate stable-diffusion-webui
Run the ./webui.sh script using the created envinronment.
The python version is 3.10.6 as pointed by README file.
I've created with conda:
conda create -n stable-diffusion-webui python=3.10.6
After this, activate the envinronment:
conda activate stable-diffusion-webui
Run the ./webui.sh script using the created envinronment.
I have python version 3.10.6 After downloading conda and writing your code to cmd it give this error 'conda' is not recognized as an internal or external command, operable program or batch file.
maybe you can try --timeout <sec>
param in pip to prevent timeout issues by setting sec to a large value, reference this: https://stackoverflow.com/questions/59796680/disable-pip-install-timeout-for-slow-connections
maybe you can try
--timeout <sec>
param in pip to prevent timeout issues by setting sec to a large value, reference this: https://stackoverflow.com/questions/59796680/disable-pip-install-timeout-for-slow-connections
try it and it stopped at "2.1/2.5 GB 1.5 MB/s eta 0:03:34" and after some time it give this error
ERROR: Exception: Traceback (most recent call last): File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 435, in _error_catcher yield File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", line 516, in read data = self._fp.read(amt) if not fp_closed else b"" File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read data = self.__fp.read(amt) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\http\client.py", line 465, in read s = self.fp.read(amt) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\socket.py", line 705, in readinto return self._sock.recv_into(b) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1274, in recv_into return self.read(nbytes, buffer) File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1130, in read return self._sslobj.read(len, buffer) TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\commands\install.py", line 369, in run
requirement_set = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 348, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
talvez você possa tentar
--timeout <sec>
param em pip para evitar problemas de tempo limite definindo sec para um valor alto, consulte isto: https://stackoverflow.com/questions/59796680/disable-pip-install-timeout-for-slow-connectionsexperimentei e parou em "2.1/2.5 GB 1.5 MB/s eta 0:03:34" e depois de algum tempo deu esse erro
ERRO: Exceção: Traceback (última chamada mais recente): Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", linha 435, em _error_catcher yield Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", linha 516, em dados de leitura = self._fp.read(amt) if not fp_closed else b"" Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", linha 90, em dados de leitura = self.__fp.read(amt) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\http\client.py", linha 465, em leitura s = self.fp.read(amt) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\socket.py", linha 705, em leitura em return self._sock.recv_into(b) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\ssl.py", linha 1274, em recv_into return self.read(nbytes, buffer) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\ssl.py", linha 1130, em leitura return self._sslobj.read(len, buffer) TimeoutError: A operação de leitura atingiu o tempo limite
Durante o tratamento da exceção acima, ocorreu outra exceção:
Traceback (última chamada mais recente): Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\cli\base_command.py", linha 167, em exc_logging_wrapper status = run_func(*args) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\cli\req_command.py", linha 247, em wrapper return func(self, options, args) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\commands\install.py", linha 369, em run requirement_set = resolver.resolve( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", linha 92, em resolver result = self._result = resolver.resolve( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", linha 481, em resolver state = resolution.resolve(requirements, max_rounds=max_rounds) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", linha 348, em resolver self._add_to_criteria(self.state.criteria, r, parent=None) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\resolvelib\resolvers.py", linha 172, em _add_to_criteria se não for criteria.candidates: Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\resolvelib\structs.py", linha 151, em bool return bool(self._sequence) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", linha 155, em bool return any(self) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", linha 143, em retorno (c para c no iterador se id(c) não estiver em self._incompatible_ids) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", linha 47, em _iter_built candidate = func() Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\factory.py", linha 206, em _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", linha 297, em init super(). init ( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", linha 162, em init self.dist = self._prepare() Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", linha 231, em _prepare dist = self._prepare_distribution() Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", linha 308, em _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", linha 438, em prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", linha 483, em _prepare_linked_requirement local_file = unpack_url( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", linha 165, em unpack_url arquivo = get_http_url( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\operations\prepare.py", linha 106, em get_http_url from_path, content_type = download(link, temp_dir.path) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\network\download.py", linha 147, em chamada para bloco em blocos: Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\cli\progress_bars.py", linha 53, em _rich_progress_bar para bloco em iterável: Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_internal\network\utils.py", linha 63, em response_chunks para chunk em response.raw.stream( Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", linha 573, em stream data = self.read(amt=amt, decode_content=decode_content) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", linha 509, em read com self._error_catcher(): Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\contextlib.py", linha 153, em exit self.gen.throw(typ, value, traceback) Arquivo "C:\Usuários\Usuário\AppData\Local\Programas\Python\Python310\lib\site-packages\pip_vendor\urllib3\response.py", linha 440, em _error_catcher raise ReadTimeoutError(self._pool, None, "Tempo limite de leitura esgotado.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', port=443):Tempo limite de leitura esgotado.
Did you solve it?
I faced the same problem, tried to solve it for a long time, in the end I tried to use VPN for the installation, and to my surprise, it helped.
Checklist
What happened?
when downloading it stops at 2.1/2.5 GB and gives the same error
Steps to reproduce the problem
What should have happened?
it should download normally
What browsers do you use to access the UI ?
No response
Sysinfo
not there yet
Console logs
Additional information
I have a good PC with 64 GB RAM and good internet, it downloads to 2.1 GB in about half an hour. The same problem happened to me a few years back but then I just gave up.