Skip to content

Update webui-macos-env.sh #16832

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

Conversation

shinriyo
Copy link

@shinriyo shinriyo commented Feb 8, 2025

fix for this

ERROR: Could not find a version that satisfies the requirement torch==2.3.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.3.1
Traceback (most recent call last):
  File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 381, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/Users/shinriyo/development/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.3.1 torchvision==0.18.1
Error code: 1

Description

  • a simple description of what you're trying to accomplish
  • a summary of changes in code
  • which issues it fixes, if any

Screenshots/videos:

Checklist:

fix for this
```
ERROR: Could not find a version that satisfies the requirement torch==2.3.1 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
ERROR: No matching distribution found for torch==2.3.1
Traceback (most recent call last):
  File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/shinriyo/development/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 381, in prepare_environment
    run(f'"{python}" -m {torch_command}', "Installing torch and torchvision", "Couldn't install torch", live=True)
  File "/Users/shinriyo/development/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install torch.
Command: "/Users/shinriyo/development/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.3.1 torchvision==0.18.1
Error code: 1
```
w-e-w

This comment was marked as duplicate.

@@ -5,13 +5,15 @@
####################################################################

export install_dir="$HOME"
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
# export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling --no-half-vae --use-cpu interrogate"
export COMMANDLINE_ARGS="--skip-torch-cuda-test --upcast-sampling
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this section was done by accident?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. accidentally I made a new line
I fix

@w-e-w w-e-w changed the base branch from master to dev February 8, 2025 09:03
@w-e-w w-e-w requested a review from catboxanon as a code owner February 8, 2025 09:03
@tyn513
Copy link

tyn513 commented Mar 21, 2025

good job..

@tyn513
Copy link

tyn513 commented Mar 21, 2025

i wasted a lot of time, and finally i found this..

@shinriyo
Copy link
Author

@tyn513
Cảm ơn. You're very welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants