AI绘画运行webui.sh报错如何解决

项目场景:

Python AI 绘画,配置环境启动时报错

问题描述

Stable Diffusion web UI 配置时,运行./webui.sh报错

Could not find a version that satisfies the requirement torch==2.0.1 (from versions: 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.1.0.post2, 1.2.0, 1.3.0, 1.3.0.post2, 1.3.1, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2)
No matching distribution found for torch==2.0.1
You are using pip version 9.0.3, however version 23.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Traceback (most recent call last):
  File "launch.py", line 48, in <module>
    main()
  File "launch.py", line 39, in main
    prepare_environment()
    /demo/stable-diffusion-webui/venv/bin/python3" -m pip install torch==2.0.1 torchvision==0.15.2

原因分析:

提示:这里填写问题的分析:

未安装pip包,


解决方案:

使用pip install torch2.0.1 torchvision0.15.2

你可能感兴趣的:(程序语言篇,AI作画)