Даниил
Знаток
(330),
на голосовании
16 часов назад
Установщик выдает следующую ошибку:
Installing torch and torchvision WARNING: There was an error checking the latest version of pip. ERROR: Exception: Traceback (most recent call last): File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper status = _inner_run() File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run return self.run (options, args) File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper return func(self, options, args) File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 325, in run session = self.get_default_session(options) File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 76, in get_default_session self._session = self.enter_context(self._build_session(options)) File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 95, in _build_session ssl_context = _create_truststore_ssl_context() File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 40, in _create_truststore_ssl_context from pip._vendor import truststore File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\truststore\__init__.py", line 17, in <module> _sslobj = _ssl.create_default_context().wrap_bio( File "C:\Program Files\Python310\lib\ssl.py", line 771, in create_default_context context.load_default_certs(purpose) File "C:\Program Files\Python310\lib\ssl.py", line 592, in load_default_certs self._load_windows_store_certs(storename, purpose) File "C:\Program Files\Python310\lib\ssl.py", line 584, in _load_windows_store_certs self.load_verify_locations(cadata=certs) ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4004) Traceback (most recent call last): File "C:\stable\stable-diffusion-webui\launch.py", line 48, in <module> main() File "C:\stable\stable-diffusion-webui\launch.py", line 39, in main prepare_environment() File "C:\stable\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 "C:\stable\stable-diffusion-webui\modules\launch_utils.py", line 116, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "C:\stable\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 Press any key to continue . . .
Windows 11, python 3.10.6 Сталкивался ли кто-то с этим, есть ли идеи решения проблемы? Спасибо!
Дополнен 1 месяц назад
Дополнен 1 месяц назад
UPD:
Нашел решение - помогло удаление нескольких сертификатов. Вычислял их через sigcheck
Installing torch and torchvision
WARNING: There was an error checking the latest version of pip.
ERROR: Exception:
Traceback (most recent call last):
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
return self.run (options, args)
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\commands\install.py", line 325, in run
session = self.get_default_session(options)
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 76, in get_default_session
self._session = self.enter_context(self._build_session(options))
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 95, in _build_session
ssl_context = _create_truststore_ssl_context()
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_internal\cli\index_command.py", line 40, in _create_truststore_ssl_context
from pip._vendor import truststore
File "C:\stable\stable-diffusion-webui\venv\lib\site-packages\pip\_vendor\truststore\__init__.py", line 17, in <module>
_sslobj = _ssl.create_default_context().wrap_bio(
File "C:\Program Files\Python310\lib\ssl.py", line 771, in create_default_context
context.load_default_certs(purpose)
File "C:\Program Files\Python310\lib\ssl.py", line 592, in load_default_certs
self._load_windows_store_certs(storename, purpose)
File "C:\Program Files\Python310\lib\ssl.py", line 584, in _load_windows_store_certs
self.load_verify_locations(cadata=certs)
ssl.SSLError: [ASN1] nested asn1 error (_ssl.c:4004)
Traceback (most recent call last):
File "C:\stable\stable-diffusion-webui\launch.py", line 48, in <module>
main()
File "C:\stable\stable-diffusion-webui\launch.py", line 39, in main
prepare_environment()
File "C:\stable\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 "C:\stable\stable-diffusion-webui\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "C:\stable\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
Press any key to continue . . .
Windows 11, python 3.10.6
Сталкивался ли кто-то с этим, есть ли идеи решения проблемы? Спасибо!