venv "C:\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1

venv "C:\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
Traceback (most recent call last):
File "C:\stable-diffusion-webui\launch.py", line 380, in <module>
prepare_environment()
File "C:\stable-diffusion-webui\launch.py", line 287, in prepare_environment
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "C:\stable-diffusion-webui\launch.py", line 137, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "C:\stable-diffusion-webui\launch.py", line 113, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\stable-diffusion-webui\venv\Scripts\python.exe" -c "import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'"
Error code: 1
stdout: Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure.
It can be downloaded at https://aka.ms/vs/16/release/vc_redist.x64.exe

stderr: Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\stable-diffusion-webui\venv\lib\site-packages\torch__init__.py", line 139, in <module>
raise err
OSError: [WinError 126] The specified module could not be found. Error loading "C:\stable-diffusion-webui\venv\lib\site-packages\torch\lib\c10.dll" or one of its dependencies.
Was this page helpful?