No module pip/torch issue #11743
Xan-glitch
started this conversation in
General
Replies: 1 comment 3 replies
-
just use Windows (method 1) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to press webui-user.bat but this is the error that pops up:
venv "C:\Users\XRH05\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)]
Version: v1.4.1
Commit hash: f865d3e
Installing torch and torchvision
C:\Users\XRH05\stable-diffusion-webui\venv\Scripts\python.exe: No module named pip
Traceback (most recent call last):
File "C:\Users\XRH05\stable-diffusion-webui\launch.py", line 38, in
main()
File "C:\Users\XRH05\stable-diffusion-webui\launch.py", line 29, in main
prepare_environment()
File "C:\Users\XRH05\stable-diffusion-webui\modules\launch_utils.py", line 265, in prepare_environment
run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
File "C:\Users\XRH05\stable-diffusion-webui\modules\launch_utils.py", line 107, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "C:\Users\XRH05\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
Error code: 1
Press any key to continue . . .
and when I remove Venv folder, this pops up:
Creating venv in directory C:\Users\XRH05\stable-diffusion-webui\venv using python "C:\Users\XRH05\AppData\Local\Programs\Python\Python310\python.exe"
Unable to create venv in directory "C:\Users\XRH05\stable-diffusion-webui\venv"
exit code: 1
stderr:
Error: Command '['C:\Users\XRH05\stable-diffusion-webui\venv\Scripts\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
Launch unsuccessful. Exiting.
Press any key to continue . . .
Beta Was this translation helpful? Give feedback.
All reactions