stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: 运行./webui.sh 后出现 错误,无法安装成功
Checklist
- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [ ] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet
What happened?
运行./webui.sh 后出现
Steps to reproduce the problem
运行./webui.sh 后出现
What should have happened?
无法创建成功,出现报错
What browsers do you use to access the UI ?
Google Chrome
Sysinfo
运行./webui.sh 后出现
Console logs
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################
################################################################
Running on yanyan user
################################################################
################################################################
Repo already cloned, using it as install directory
################################################################
################################################################
Create and activate python venv
################################################################
################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing requirements for CodeFormer
Traceback (most recent call last):
File "/Users/yanyan/stable-diffusion-webui/launch.py", line 48, in <module>
main()
File "/Users/yanyan/stable-diffusion-webui/launch.py", line 39, in main
prepare_environment()
File "/Users/yanyan/stable-diffusion-webui/modules/launch_utils.py", line 417, in prepare_environment
run_pip(f"install -r \"{os.path.join(repo_dir('CodeFormer'), 'requirements.txt')}\"", "requirements for CodeFormer")
File "/Users/yanyan/stable-diffusion-webui/modules/launch_utils.py", line 144, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "/Users/yanyan/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements for CodeFormer.
Command: "/Users/yanyan/stable-diffusion-webui/venv/bin/python3.10" -m pip install -r "/Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt" --prefer-binary
Error code: 1
stdout: Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting addict (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 1))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/00/b08f23b7d7e1e14ce01419a467b583edbb93c6cdb8654e54a9cc579cd61f/addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 2))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz (840 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting lmdb (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 3))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/de/13/dd9b0c1924f0becc93e0bacd123a4e7a347966e3e74753ace3b1e85acc39/lmdb-1.4.1.tar.gz (881 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: numpy in ./venv/lib/python3.10/site-packages (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 4)) (1.26.2)
Collecting opencv-python (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 5))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a1/f6/57de91ea40c670527cd47a6548bf2cbedc68cec57c041793b256356abad7/opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl (33.1 MB)
Requirement already satisfied: Pillow in ./venv/lib/python3.10/site-packages (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 6)) (10.1.0)
Requirement already satisfied: pyyaml in ./venv/lib/python3.10/site-packages (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in ./venv/lib/python3.10/site-packages (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 8)) (2.31.0)
Collecting scikit-image (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 9))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/16/06/4bfba08f5cce26d5070bb2cf4e3f9f479480978806355d1c5bea6f26a17c/scikit_image-0.22.0-cp310-cp310-macosx_12_0_arm64.whl (13.3 MB)
Collecting scipy (from -r /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer/requirements.txt (line 10))
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/de/0d/4fa68303568c70fd56fbf40668b6c6807cfee4cad975f07d80bdd26d013e/scipy-1.11.4-cp310-cp310-macosx_12_0_arm64.whl (29.8 MB)
stderr: ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement tb-nightly (from versions: none)
ERROR: No matching distribution found for tb-nightly
[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Additional information
No response
再一次运行后出现这样的 Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer. ################################################################
################################################################ Running on yanyan user ################################################################
################################################################ Repo already cloned, using it as install directory ################################################################
################################################################ Create and activate python venv ################################################################
################################################################
Launching launch.py...
################################################################
Python 3.10.13 (main, Aug 24 2023, 12:59:26) [Clang 15.0.0 (clang-1500.0.40.1)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Cloning Stable Diffusion XL into /Users/yanyan/stable-diffusion-webui/repositories/generative-models...
正克隆到 '/Users/yanyan/stable-diffusion-webui/repositories/generative-models'...
remote: Enumerating objects: 860, done.
remote: Counting objects: 100% (503/503), done.
remote: Compressing objects: 100% (233/233), done.
remote: Total 860 (delta 359), reused 309 (delta 266), pack-reused 357
接收对象中: 100% (860/860), 42.67 MiB | 864.00 KiB/s, 完成.
处理 delta 中: 100% (435/435), 完成.
Cloning K-diffusion into /Users/yanyan/stable-diffusion-webui/repositories/k-diffusion...
正克隆到 '/Users/yanyan/stable-diffusion-webui/repositories/k-diffusion'...
remote: Enumerating objects: 1329, done.
remote: Counting objects: 100% (727/727), done.
remote: Compressing objects: 100% (85/85), done.
remote: Total 1329 (delta 685), reused 645 (delta 642), pack-reused 602
接收对象中: 100% (1329/1329), 232.84 KiB | 392.00 KiB/s, 完成.
处理 delta 中: 100% (933/933), 完成.
Cloning CodeFormer into /Users/yanyan/stable-diffusion-webui/repositories/CodeFormer...
正克隆到 '/Users/yanyan/stable-diffusion-webui/repositories/CodeFormer'...
remote: Enumerating objects: 594, done.
remote: Counting objects: 100% (245/245), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 594 (delta 175), reused 173 (delta 157), pack-reused 349
接收对象中: 100% (594/594), 17.31 MiB | 1.12 MiB/s, 完成.
处理 delta 中: 100% (286/286), 完成.
Cloning BLIP into /Users/yanyan/stable-diffusion-webui/repositories/BLIP...
正克隆到 '/Users/yanyan/stable-diffusion-webui/repositories/BLIP'...
remote: Enumerating objects: 277, done.
remote: Counting objects: 100% (165/165), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112
接收对象中: 100% (277/277), 7.03 MiB | 634.00 KiB/s, 完成.
处理 delta 中: 100% (152/152), 完成.
Installing requirements for CodeFormer
Traceback (most recent call last):
File "/Users/yanyan/stable-diffusion-webui/launch.py", line 48, in
CodeFormer Problem, not bug
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13363#issuecomment-1736596116 Caused by tuna pip source
I change my pip source to http://mirrors.aliyun.com/pypi/simple/ to solve this problem.
On Jan 9, 2024, at 10:50, Shuzhong-Lai @.***> wrote:
i meet the same problem, how to slove it?
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14431#issuecomment-1882259322, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANKZAGET7NQUBCU6PHVKWYTYNSV7PAVCNFSM6AAAAABBCYTBOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBSGI2TSMZSGI. You are receiving this because you commented.