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

python

Open LiarScapegoat opened this issue 9 months ago • 11 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

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

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ... 111

What should have happened?

May I ask what is going on? I have installed the python environment several times.

Sysinfo

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

What browsers do you use to access the UI ?

Microsoft Edge

Console logs

venv "D:\ai\stable-diffusion-webui-master\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Installing requirements for CodeFormer
Traceback (most recent call last):
  File "D:\ai\stable-diffusion-webui-master\launch.py", line 48, in <module>
    main()
  File "D:\ai\stable-diffusion-webui-master\launch.py", line 39, in main
    prepare_environment()
  File "D:\ai\stable-diffusion-webui-master\modules\launch_utils.py", line 389, 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-master\modules\launch_utils.py", line 138, 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-master\modules\launch_utils.py", line 115, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements for CodeFormer.
Command: "D:\ai\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install -r "D:\ai\stable-diffusion-webui-master\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-master\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 D:\ai\stable-diffusion-webui-master\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 D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 3))
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/05/21a93eed7ff800f7c3b0538eb12bde89660a44693624cd0e49141beccb8b/lmdb-1.4.1-cp310-cp310-win_amd64.whl (100 kB)
Requirement already satisfied: numpy in d:\ai\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 4)) (1.26.0)
Collecting opencv-python (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 5))
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fb/c4/f574ba6f04e6d7bf8c38d23e7a52389566dd7631fee0bcdd79ea07ef2dbf/opencv_python-4.8.0.76-cp37-abi3-win_amd64.whl (38.1 MB)
Requirement already satisfied: Pillow in d:\ai\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 6)) (10.0.1)
Requirement already satisfied: pyyaml in d:\ai\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in d:\ai\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 8)) (2.31.0)
Collecting scikit-image (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 9))
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/93/65601f7577d6fd49ec23bf8fb58c04d8170b06a1544452ae2ea9f59bf11f/scikit_image-0.21.0-cp310-cp310-win_amd64.whl (22.8 MB)
Collecting scipy (from -r D:\ai\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 10))
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/70/03/485f73046134400ea25d3cb178c5e6728f9b165f79d09638ecb44ee0e9b1/scipy-1.11.2-cp310-cp310-win_amd64.whl (44.0 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

请按任意键继续. . .

Additional information

1

LiarScapegoat avatar Sep 23 '23 04:09 LiarScapegoat

reinstall the webui today same issue no this problem before

tutu329 avatar Sep 27 '23 02:09 tutu329

是清华源的问题,必须要换,比如阿里源

tutu329 avatar Sep 27 '23 02:09 tutu329

Me too.

spencer17x avatar Oct 13 '23 09:10 spencer17x

是清华源的问题,必须要换,比如阿里源

改成默认源有用吗?

spencer17x avatar Oct 13 '23 09:10 spencer17x

I am also having this issue.

Note: I've been using Stable Diffusion with Auto1111 for MORE THAN A YEAR. I've uninstalled it and reinstalled it several times.

About a month ago, I decided to delete my venv and start clean (a thing that I have done several times with no issue).

This time, however, when I remade my venv and relaunched, it hangs on "installing requirements for CodeFormer", and then eventually kicks out the error above.

For whatever reason, the codeformer install can't see what version of Python I have.

I think, ok, let me pull everything out and do a clean install. I uninstall python, clean out my auto, start fresh. Installed python, installed Auto1111. Everything goes fine... until it gets to codeformer.

"ERROR: Could not find a version that satisfies the requirement tb-nightly"

I've been a tech head for a while, and a tech support person before I ended up in my current VFX role. I've done so much troubleshooting on this i've gone crosseyed.

Windows 10 64bit, 3060, buckets of tears.

Things that I have tried. I have tried to relaunch after each one (and delete venv and recreate as well), and after each, it reinstalls happily until it gets to codeformer, and then chokes.

  • Re-install python 3.10 even slower, making extra double sure I click "add to path". Checked in the environment variables to make sure it is registered.
  • Pulled everything out again, including git
  • Installed Auto1111 with SEAIT
  • Installed Auto1111 with Stability Matrix
  • Pull python out, install Miniconda.
  • Pull everything out, install the same weird combo of python I had when it was working, even though it was messy. Py 3.7, py 3.8, py3.10
  • Pull all that out and just put in py 3.11
  • Update pip when Auto complains about pip having a new version (just throwing this in here as something i did).

The ONLY changes I ever got was that the error message shifted to saying

"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"

For the record, I have indeed tried it with ONLY the versions of python between 3.7 and 3.10. Same error.

I'm not blocking the tuna.tsinghua.edu.cn packages. I don't have a space or weird character in the path.

I've followed this thread, and the others I've found, but I'm still stuck.

For the record, the VladFusion fork of Auto1111 throws an error about the same thing, but it LAUNCHES and will run, but I heavily prefer the base auto1111 UI. I never use the Attempt to Fix Faces button anyway.

If anybody has ANY help, I'd be grateful enough to offer a reward to anybody that can get me back to auto1111.

Mousewrites avatar Oct 16 '23 05:10 Mousewrites

@tutu329 > 是清华源的问题,必须要换,比如阿里源

I'm willing to tell it to use the other source, but I don't know where that is, or how to make that switchover. Can you give me any more info?

Mousewrites avatar Oct 17 '23 16:10 Mousewrites

Mods: if we could change the title of this thread to something like "Codeformer won't install; python version not recognized" it would be super helpful. (i have no idea how to request that other than in a comment)

Mousewrites avatar Oct 17 '23 16:10 Mousewrites

@tutu329 > 是清华源的问题,必须要换,比如阿里源

I'm willing to tell it to use the other source, but I don't know where that is, or how to make that switchover. Can you give me any more info?

@Mousewrites The pip config is saved in C:\Users\[username]\AppData\Roaming\pip\pip.ini by default. You can change/delete the 'index-url' in the file directly. Or you can execute the command pip config set global.index-url https://examples.com to change it.

Autumnal-Joy avatar Oct 24 '23 18:10 Autumnal-Joy

@tutu329 > 是清华源的问题,必须要换,比如阿里源

I'm willing to tell it to use the other source, but I don't know where that is, or how to make that switchover. Can you give me any more info?

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

gordensong avatar Feb 02 '24 02:02 gordensong

YOU ANGEL.

On Thu, Feb 1, 2024 at 6:19 PM gordensong @.***> wrote:

@tutu329 https://github.com/tutu329 > 是清华源的问题,必须要换,比如阿里源

I'm willing to tell it to use the other source, but I don't know where that is, or how to make that switchover. Can you give me any more info?

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

— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13363#issuecomment-1922669290, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3NBUWKOOUEZGZTUPSBXOSDYRREJHAVCNFSM6AAAAAA5D5CYR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRSGY3DSMRZGA . You are receiving this because you were mentioned.Message ID: @.***>

--

  • Lindsey

Lindsey Robbins LindseyRobbinsart.com @.*** 805.232.6530

Mousewrites avatar Feb 02 '24 03:02 Mousewrites

@tutu329 > 是清华源的问题,必须要换,比如阿里源 I'm willing to tell it to use the other source, but I don't know where that is, or how to make that switchover. Can you give me any more info?

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

It works well. Thanks a lot.

WinfredMa avatar Feb 18 '24 13:02 WinfredMa