ComfyUI 运行缺乏git的报错,修复后的前后对比

708 阅读1分钟
[START] Security scan
[DONE] Security scan
Popen(['git', 'version'], cwd=E:\AI\ComfyUI, stdin=None, shell=False, universal_newlines=False)
Failed to execute startup-script: E:\AI\ComfyUI\ComfyUI\custom_nodes\comfyui-manager\prestartup_script.py / Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
    - be included in your $PATH
    - be set via $GIT_PYTHON_GIT_EXECUTABLE
    - explicitly set via git.refresh(<full-path-to-git-executable>)

All git commands will error until this is rectified.

This initial message can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
    - quiet|q|silence|s|silent|none|n|0: for no message or exception
    - warn|w|warning|log|l|1: for a warning message (logging level CRITICAL, displayed by default)
    - error|e|exception|raise|r|2: for a raised exception

Example:
    export GIT_PYTHON_REFRESH=quiet


Prestartup times for custom nodes:
   0.0 seconds: E:\AI\ComfyUI\ComfyUI\custom_nodes\rgthree-comfy

安装:GIT 注意安装后不需要重新启动但是bash或者CMD窗口需要重新启动否则GIT还是不能识别的

Setting output directory to: E:\AI\Output
Setting input directory to: E:\AI\Input
[START] Security scan
[DONE] Security scan
Popen(['git', 'version'], cwd=E:\AI\ComfyUI, stdin=None, shell=False, universal_newlines=False)
Popen(['git', 'version'], cwd=E:\AI\ComfyUI, stdin=None, shell=False, universal_newlines=False)
## ComfyUI-Manager: installing dependencies done.
** ComfyUI startup time: 2025-04-02 19:46:26.309
** Platform: Windows
** Python version: 3.12.9 | packaged by Anaconda, Inc. | (main, Feb  6 2025, 18:49:16) [MSC v.1929 64 bit (AMD64)]
** Python executable: E:\anaconda3\envs\ComfyUI312\python.exe
** ComfyUI Path: E:\AI\ComfyUI\ComfyUI
** ComfyUI Base Folder Path: E:\AI\ComfyUI\ComfyUI
** User directory: E:\AI\ComfyUI\ComfyUI\user
** ComfyUI-Manager config path: E:\AI\ComfyUI\ComfyUI\user\default\ComfyUI-Manager\config.ini
** Log path: E:\AI\ComfyUI\ComfyUI\user\comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: E:\AI\ComfyUI\ComfyUI\custom_nodes\comfyui-easy-use