a1111-setup icon indicating copy to clipboard operation
a1111-setup copied to clipboard

Hi bro, run shell wrong, echo that pytorch version is not existe

Open weijiyang opened this issue 8 months ago • 1 comments

################################################################ Create and activate python venv ################################################################ Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Requirement already satisfied: pip in ./venv/lib/python3.10/site-packages (23.0.1) Collecting pip Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e0/f0/8a2806114cd36e282823fd4d8e88e3b94dc943c2569c350d0c826a49db38/pip-25.1-py3-none-any.whl (1.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 4.1 MB/s eta 0:00:00 Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 23.0.1 Uninstalling pip-23.0.1: Successfully uninstalled pip-23.0.1 Successfully installed pip-25.1

################################################################ Launching launch.py... ################################################################ Python 3.10.13 (main, Mar 14 2024, 20:18:41) [Clang 15.0.0 (clang-1500.0.40.1)] Version: v1.10.1 Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2 Installing torch and torchvision Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple 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/weijiyang/stable-diffusion-webui/launch.py", line 48, in main() File "/Users/weijiyang/stable-diffusion-webui/launch.py", line 39, in main prepare_environment() File "/Users/weijiyang/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/weijiyang/stable-diffusion-webui/modules/launch_utils.py", line 116, in run raise RuntimeError("\n".join(error_bits)) RuntimeError: Couldn't install torch. Command: "/Users/weijiyang/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.3.1 torchvision==0.18.1 Error code: 1

weijiyang avatar Apr 30 '25 07:04 weijiyang

Please run those commands and send the output:

cd && git clone https://github.com/viking1304/a1111-setup.git
cd a1111-setup && git switch develop
sh a1111-setup.sh -i

That will clone my script from github to the folder a1111-setup in your home directory, and switch to development version, where I added some things. If you already have a1111-setup directory inside your home directory, please rename it first.

viking1304 avatar May 03 '25 00:05 viking1304

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jun 04 '25 12:06 github-actions[bot]

Closing this issue due to inactivity. Feel free to reopen if needed.

github-actions[bot] avatar Jun 11 '25 12:06 github-actions[bot]