bsqsdy 发表于 2024-10-13 17:23:51

安装最后一步ERROR: Could not find a version that satisfies the requirement torch

################################################################Install script for stable-diffusion + Web UITested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.################################################################
################################################################Running on lris user################################################################
################################################################Repo already cloned, using it as install directory################################################################
################################################################Create and activate python venv################################################################
################################################################Launching launch.py...################################################################Python 3.10.10 (v3.10.10:aad5f6a891, Feb7 2023, 08:47:40) Version: v1.10.1Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2Installing torch and torchvisionWARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/torch/WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/torch/WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/torch/WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/torch/WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))': /simple/torch/Could not fetch URL https://pypi.org/simple/torch/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/torch/ (Caused by SSLError(SSLCertVerificationError(1, ' certificate verify failed: unable to get local issuer certificate (_ssl.c:997)'))) - skippingERROR: Could not find a version that satisfies the requirement torch==2.3.1 (from versions: none)ERROR: No matching distribution found for torch==2.3.1Traceback (most recent call last):File "/Users/lris/Desktop/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 48, in <module>    main()File "/Users/lris/Desktop/stable-diffusion-webui/stable-diffusion-webui/launch.py", line 39, in main    prepare_environment()File "/Users/lris/Desktop/stable-diffusion-webui/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/lris/Desktop/stable-diffusion-webui/stable-diffusion-webui/modules/launch_utils.py", line 116, in run    raise RuntimeError("\n".join(error_bits))RuntimeError: Couldn't install torch.Command: "/Users/lris/Desktop/stable-diffusion-webui/stable-diffusion-webui/venv/bin/python" -m pip install torch==2.3.1 torchvision==0.18.1Error code: 1
页: [1]
查看完整版本: 安装最后一步ERROR: Could not find a version that satisfies the requirement torch