AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.91k stars 26.94k forks source link

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

Open SeaN0X opened 1 year ago

SeaN0X commented 1 year ago

Is there an existing issue for this?

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.

Sakura-Luna commented 1 year ago

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

MagicJack commented 1 year ago

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.

Cuiyim commented 1 year ago

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

SeaN0X commented 1 year ago

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

Cuiyim commented 1 year ago

image

Cuiyim commented 1 year ago

image

Cuiyim commented 1 year ago

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

Cuiyim commented 1 year ago

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

art-ps commented 1 year ago

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

Cooldude2606 commented 1 year ago

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)

TotalDay commented 1 year ago

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 commented 1 year ago

you need python 3.9.xx

dpsisk commented 1 year ago

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).