stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)

Open SeaN0X opened this issue 1 year ago • 10 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

This bug happens when i try to launch webui-user.bat

Steps to reproduce the problem

  1. launch webui-user.bat
  2. wait

What should have happened?

The program should install torch, load the model and then start the web server.

Commit where the problem happens

22bcc7be428c94e9408f589966c2040187245d81

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--lowvram --precision full --no-half --skip-torch-cuda-test --disable-safe-unpickle

List of extensions

No

Console logs

D:\IA\stable-diffusion-webui>webui-user.bat
venv "D:\IA\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:38:17) [MSC v.1932 32 bit (Intel)]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing torch and torchvision
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117
ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none)
ERROR: No matching distribution found for torch==1.13.1+cu117

[notice] A new release of pip available: 22.2.1 -> 23.0.1
[notice] To update, run: D:\IA\stable-diffusion-webui\venv\Scripts\python.exe -m pip install --upgrade pip
Traceback (most recent call last):
  File "D:\IA\stable-diffusion-webui\launch.py", line 355, in <module>
    prepare_environment()
  File "D:\IA\stable-diffusion-webui\launch.py", line 257, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "D:\IA\stable-diffusion-webui\launch.py", line 81, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "D:\IA\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
Error code: 1

Additional information

I've currently installed python 3.10.6 and i tried to delete venv folder and then launch again, but i still get this error.

i've ran "py -0p" and as it seems, i do not have any other python versions on my system other than 3.10.6.

SeaN0X avatar Apr 08 '23 20:04 SeaN0X

Try installing PyTorch directly, pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117

Sakura-Luna avatar Apr 09 '23 03:04 Sakura-Luna

the download script in launch.py should be

pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --index-url https://download.pytorch.org/whl/cu117

I don't known what's wrong, according to manaual of pip command, both --extra-index-url and --index-url should work. But now only --index-url works in script launch.py.

MagicJack avatar Apr 09 '23 07:04 MagicJack

image 我也遇到了这个问题 我无法安装

Cuiyim avatar Apr 09 '23 15:04 Cuiyim

Try installing PyTorch directly, pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117

I got the same error.

Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117 ERROR: Could not find a version that satisfies the requirement torch==1.13.1+cu117 (from versions: none) ERROR: No matching distribution found for torch==1.13.1+cu117

SeaN0X avatar Apr 09 '23 16:04 SeaN0X

image

Cuiyim avatar Apr 09 '23 16:04 Cuiyim

image

Cuiyim avatar Apr 09 '23 16:04 Cuiyim

image 请问这个提示是安装成功了吗 下一步我应该怎么做 我执行webui.bat 启动时又会自动装一次 然后触发同样的报错

Cuiyim avatar Apr 10 '23 17:04 Cuiyim

image 使用了最新版本安装 出现了新的报错

Cuiyim avatar Apr 11 '23 17:04 Cuiyim

Hi, I have the same problem as you, did you find a solution ?

art-ps avatar Apr 16 '23 17:04 art-ps

I also ran into this error. I found that switching to Python 3.10.11 solved the issue. I was previously using Python 3.11.3 which is the latest at the time of this post. Although OP used version 3.10.6 so it seams highly specific. (For note I'm using pip version 23.0.1)

Cooldude2606 avatar Apr 17 '23 01:04 Cooldude2606

https://github.com/TotalDay/Intel_ARC_GPU_WSL_Stable_Diffusion_WEBUI

pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117#pip install torch==1.13.0a0 torchvision==0.14.1a0 intel_extension_for_pytorch==1.13.10+xpu -f https://developer.intel.com/ipex-whl-stable-xpu#g

TotalDay avatar Apr 23 '23 18:04 TotalDay

you need python 3.9.xx

TotalDay avatar Apr 23 '23 18:04 TotalDay

I also ran into this error. I found that switching to Python 3.10.11 solved the issue. I was previously using Python 3.11.3 which is the latest at the time of this post. Although OP used version 3.10.6 so it seams highly specific. (For note I'm using pip version 23.0.1)

This solved things for me. I was also using a mingw distro of Python that named the venv dirs according to linux etc standards (/bin instead of /Scripts).

dpsisk avatar Apr 27 '23 16:04 dpsisk