StableDiffusion-RuntimeError: Couldn‘t install requirements for CodeFormer

问题参数

venv "D:\StableDiffusion\stable-diffusion-webui-master\venv\Scripts\Python.exe"
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: No names found, cannot describe anything.
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.7.0
Commit hash: <none>
Installing requirements for CodeFormer
Traceback (most recent call last):
  File "D:\StableDiffusion\stable-diffusion-webui-master\launch.py", line 48, in <module>
    main()
  File "D:\StableDiffusion\stable-diffusion-webui-master\launch.py", line 39, in main
    prepare_environment()
  File "D:\StableDiffusion\stable-diffusion-webui-master\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:\StableDiffusion\stable-diffusion-webui-master\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:\StableDiffusion\stable-diffusion-webui-master\modules\launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install requirements for CodeFormer.
Command: "D:\StableDiffusion\stable-diffusion-webui-master\venv\Scripts\python.exe" -m pip install -r "D:\StableDiffusion\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
  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
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/da/71/ae30dadffc90b9006d77af76b393cb9dfbfc9629f339fc1574a1c52e6806/future-1.0.0-py3-none-any.whl (491 kB)
Collecting lmdb
  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:\stablediffusion\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\StableDiffusion\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 4)) (1.26.4)
Collecting opencv-python
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/ec/9dabb6a9abfdebb3c45b0cc52dec901caafef2b2c7e7d6a839ed86d81e91/opencv_python-4.9.0.80-cp37-abi3-win_amd64.whl (38.6 MB)
Requirement already satisfied: Pillow in d:\stablediffusion\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\StableDiffusion\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 6)) (10.2.0)
Requirement already satisfied: pyyaml in d:\stablediffusion\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\StableDiffusion\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 7)) (6.0.1)
Requirement already satisfied: requests in d:\stablediffusion\stable-diffusion-webui-master\venv\lib\site-packages (from -r D:\StableDiffusion\stable-diffusion-webui-master\repositories\CodeFormer\requirements.txt (line 8)) (2.31.0)
Collecting scikit-image
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/86/f0/18895318109f9b508f2310f136922e455a453550826a8240b412063c2528/scikit_image-0.22.0-cp310-cp310-win_amd64.whl (24.5 MB)
Collecting scipy
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/a7/5f829b100d208c85163aecba93faf01d088d944fc91585338751d812f1e4/scipy-1.12.0-cp310-cp310-win_amd64.whl (46.2 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 available: 22.2.1 -> 24.0
[notice] To update, run: D:\StableDiffusion\stable-diffusion-webui-master\venv\Scripts\python.exe -m pip install --upgrade pip

请按任意键继续. . .

标题解决方案

删除webui-user.bat的git设定

在这里插入图片描述

PIP清华镜像替换成阿里云

查看原来是什么源

pip config list
global.index-url='https://pypi.tuna.tsinghua.edu.cn/simple'

更换成阿里云的源

pip3 config set global.index-url https://mirror
s.aliyun.com/pypi/simple
Writing to C:\Users\sakura\AppData\Roaming\pip\pip.ini

正常下载中
在这里插入图片描述

  • 6
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值