(stable-diffusion-webui) C:\Users\qinch\stable-diffusion-webui>webui-user.bat
venv "C:\Users\q\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]
Commit hash: 076d624a297532d6e4abebe5807fd7c7504d7a73
Traceback (most recent call last):
File "C:\Users\q\stable-diffusion-webui\launch.py", line 360, in
prepare_environment()
File "C:\Users\q\stable-diffusion-webui\launch.py", line 272, 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:\Users\q\stable-diffusion-webui\launch.py", line 129, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "C:\Users\q\stable-diffusion-webui\launch.py", line 105, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "C:\Users\q\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:
stderr: Traceback (most recent call last):
File "
File "C:\Users\q\stable-diffusion-webui\venv\lib\site-packages\torch\__init__.py", line 235, in
raise ImportError(textwrap.dedent('''
ImportError: Failed to load PyTorch C extensions:
It appears that PyTorch has loaded the `torch/_C` folder
of the PyTorch repository rather than the C extensions which
are expected in the `torch._C` namespace. This can occur when
using the `install` workflow. e.g.
$ python setup.py install && python -c "import torch"
This error can generally be solved using the `develop` workflow
$ python setup.py develop && python -c "import torch" # This should succeed
or by running Python from a different directory.