stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: webui-user.bat cannot finish installation successfully

Open hitzhangjie opened this issue 5 months ago • 2 comments

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?

it reports python version check failed.

Steps to reproduce the problem

just do as your README says:

  • install python 3.10.6
  • git clone
  • run webui-user.bat

What should have happened?

install success

What browsers do you use to access the UI ?

Google Chrome

Sysinfo

This step could be ignored, for webui-user.bat starts failed.

Console logs

D:\AI\stable-diffusion-webui>python.exe -m pip install --upgrade pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in c:\users\administrator\appdata\local\programs\python\python310\lib\site-packages (23.0.1)
Collecting pip
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl (2.1 MB)
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-24.0

D:\AI\stable-diffusion-webui>
D:\AI\stable-diffusion-webui>
D:\AI\stable-diffusion-webui>webui-user.bat
venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing requirements for CodeFormer
Traceback (most recent call last):
  File "D:\AI\stable-diffusion-webui\launch.py", line 48, in <module>
    main()
  File "D:\AI\stable-diffusion-webui\launch.py", line 39, in main
    prepare_environment()
  File "D:\AI\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 "D:\AI\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 "D:\AI\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: "D:\AI\stable-diffusion-webui\venv\Scripts\python.exe" -m pip install -r "D:\AI\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 D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 1))
  Downloading 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 D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 2))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz (840 kB)
     ------------------------------------ 840.9/840.9 kB 760.0 kB/s eta 0:00:00
  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'
  Installing backend dependencies: started
  Installing backend dependencies: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting lmdb (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 3))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/66/05/21a93eed7ff800f7c3b0538eb12bde89660a44693624cd0e49141beccb8b/lmdb-1.4.1-cp310-cp310-win_amd64.whl (100 kB)
     -------------------------------------- 100.1/100.1 kB 5.6 MB/s eta 0:00:00
Requirement already satisfied: numpy in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 4)) (1.26.3)
Collecting opencv-python (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 5))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c7/ec/9dabb6a9abfdebb3c45b0cc52dec901caafef2b2c7e7d6a839ed86d81e91/opencv_python-4.9.0.80-cp37-abi3-win_amd64.whl (38.6 MB)
     ---------------------------------------- 38.6/38.6 MB 9.6 MB/s eta 0:00:00
Requirement already satisfied: Pillow in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 6)) (10.2.0)
Requirement already satisfied: pyyaml in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in d:\ai\stable-diffusion-webui\venv\lib\site-packages (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 8)) (2.31.0)
Collecting scikit-image (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 9))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/86/f0/18895318109f9b508f2310f136922e455a453550826a8240b412063c2528/scikit_image-0.22.0-cp310-cp310-win_amd64.whl (24.5 MB)
     ---------------------------------------- 24.5/24.5 MB 9.8 MB/s eta 0:00:00
Collecting scipy (from -r D:\AI\stable-diffusion-webui\repositories\CodeFormer\requirements.txt (line 10))
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fd/a7/5f829b100d208c85163aecba93faf01d088d944fc91585338751d812f1e4/scipy-1.12.0-cp310-cp310-win_amd64.whl (46.2 MB)
     ---------------------------------------- 46.2/46.2 MB 8.5 MB/s eta 0:00:00

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

Press any key to continue . . .

Additional information

No response

hitzhangjie avatar Feb 04 '24 21:02 hitzhangjie

It seams that the tb-nightly doesn't exist in tsinghua mirror list, you can change to other mirror list.

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

Check if change success.

pip config list

kysonlok avatar Feb 05 '24 09:02 kysonlok

Your package "Nightly-TB" is not compatible with your existing version of python already installed. Wich 3.10.6 try to uninstal your existing version of python for a newer version, try this one : 3.10.9.

EKKIV0K avatar Feb 09 '24 09:02 EKKIV0K

Try to use other mirror list works. Thanks.

hitzhangjie avatar Feb 27 '24 03:02 hitzhangjie