Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can't install torch, torchvision and rocm #10444

Closed
1 task done
rmbeer opened this issue May 16, 2023 · 5 comments · Fixed by #10499
Closed
1 task done

[Bug]: Can't install torch, torchvision and rocm #10444

rmbeer opened this issue May 16, 2023 · 5 comments · Fixed by #10499
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@rmbeer
Copy link

rmbeer commented May 16, 2023

Is there an existing issue for this?

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

What happened?

fail installation from pip in webui.sh. (step 3 of installation)

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

install all torch and other packages and continue it

Commit where the problem happens

89f9faa

What platforms do you use to access the UI ?

Linux

What browsers do you use to access the UI ?

No response

Command Line Arguments

no

List of extensions

git clone https://github.com/deforum-art/sd-webui-deforum extensions/deforum

(from step 2 of installation)

Console logs

$ ./webui.sh 

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on deforumai user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc.so.4
Python 3.10.5 (main, Jun 12 2022, 05:57:32) [GCC 12.1.0]
Version: v1.2.1
Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045
Installing torch and torchvision
Looking in indexes: https://download.pytorch.org/whl/rocm5.2
ERROR: Could not find a version that satisfies the requirement torch==1.13.1+rocm5.2 (from versions: none)
ERROR: No matching distribution found for torch==1.13.1+rocm5.2
Traceback (most recent call last):
  File "/home/deforumai/d/stable-diffusion-webui/launch.py", line 369, in <module>
    prepare_environment()
  File "/home/deforumai/d/stable-diffusion-webui/launch.py", line 271, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/home/deforumai/d/stable-diffusion-webui/launch.py", line 95, in run
    raise RuntimeError(f"""{errdesc or 'Error running command'}.
RuntimeError: Couldn't install torch.
Command: "/home/deforumai/d/stable-diffusion-webui/venv/bin/python3" -m pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2
Error code: 1

Additional information

No response

@rmbeer rmbeer added the bug-report Report of a bug, yet to be confirmed label May 16, 2023
@TerryLYQ
Copy link

that same error. no idea..

@dongweiming
Copy link
Contributor

@rmbeer @TerryLYQ It looks like you are using a particular linux platform. Could you paste the output of the following command?

uname -a

venv/bin/python3 -m pip install torch

@rmbeer
Copy link
Author

rmbeer commented May 17, 2023

Version of Linux:
Linux XXXXX 5.15.44-1.1-lts #1 SMP Wed, 01 Jun 2022 15:17:32 +0000 i686 GNU/Linux

I send like 3 commands:

**$ venv/bin/python3 -m pip install torch**
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
You should consider upgrading via the '/home/deforumai/d/stable-diffusion-webui/venv/bin/python3 -m pip install --upgrade pip' command.

**$ venv/bin/python3 -m pip install --upgrade pip**
Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (22.0.4)
Collecting pip
  Downloading pip-23.1.2-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 2.8 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
      Successfully uninstalled pip-22.0.4
Successfully installed pip-23.1.2

**$ venv/bin/python3 -m pip install torch**
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch

And late the same error.

@claychinasky
Copy link

I don't know what has been changed but on fresh linux, when I do ./webui.sh it starts to create venv and tries to install Collecting torch==1.13.1+rocm5.2 which I have a cuda card, even tho I specify it in requirements files where torch==2.0.1 it ignores all that and forces to install ROCm.

@dongweiming
Copy link
Contributor

@rmbeer Now it only supports aarch64 and x86_64 architectures. Yours is i686, which is a 32-bit system and needs to be reinstalled as a 64-bit system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants