Windows portable: comfy launch / node install use the system Python instead of the workspace's python_embeded

Aperta
#906 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@wanjiang263 ci sta già lavorando.

Dal 2/10/2026.

  • #964 di @wanjiang263 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start with the interpreter resolution behind comfy --json env, then trace how the portable workspace is used by server launch and Manager/node operations. Reproduce with the stated Windows portable layout and verify that launching, Manager detection, and node installation use ..\python_embeded\python.exe rather than system Python.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

With the official ComfyUI Windows portable build as the workspace, comfy-cli resolves the system Python as its interpreter instead of the portable build's own python_embeded. Anything that has to run inside ComfyUI's environment (starting the server, installing custom nodes, Manager detection) then breaks.

Environment

  • Windows 11, RTX 5070 Ti
  • comfy-cli 1.20.0, comfy-mcp 0.10.0
  • ComfyUI 0.36.0, ComfyUI-Manager 4.3 (installed in the portable's embedded Python)
  • Workspace: D:\Ai\ComfyUI_windows_portable\ComfyUI (portable, embedded Python 3.13.11 in ..\python_embeded\python.exe)
  • System Python: 3.14.5 (C:\Users\<user>\AppData\Local\Python\pythoncore-3.14-64\python.exe), where comfy-cli is installed

What I see

comfy --json env reports:

"python": { "version": "3.14.5", "executable": "C:\\Users\\<user>\\AppData\\Local\\Python\\pythoncore-3.14-64\\python.exe" }
"workspace": { "path": "D:\\Ai\\ComfyUI_windows_portable\\ComfyUI", "type": "default",
               "manager_mode": "not-installed", "manager_detected": "none" }
  • manager_mode: not-installed although ComfyUI-Manager 4.3 is installed in the portable's embedded Python (the server started with --enable-manager shows the Manager working).
  • Starting the server through comfy-cli / the launch_comfyui tool of comfy-mcp runs main.py with the system Python 3.14 and fails on imports (the server log ends with ModuleNotFoundError: No module named 'sqlalchemy' in app/assets/lifecycle.py; an earlier attempt showed No module named 'alembic'). The same main.py starts fine with python_embeded\python.exe.
  • The install_node tool of comfy-mcp refuses with "does not have ComfyUI-Manager at all", presumably for the same reason.

Expected

When the workspace is a portable install, comfy-cli should use <portable root>\python_embeded\python.exe for launching ComfyUI and for Manager/node operations (or offer a documented way to point it at that interpreter, e.g. a config key or flag).

Question

Is there already a supported way to set the workspace interpreter for portable installs? I could not find one in comfy --help or the docs. Current workaround: start the server manually with run_nvidia_gpu.bat and install nodes from the UI; everything else (run, templates, model downloads) works.

I searched the open and closed issues of comfy-cli and comfy-mcp for portable/python_embeded/launch and did not find a matching report.

Lingua principale
Python
Stelle
1k
Fork
176
Merge medio
1g 11h
PR unite (30g)
87

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Comfy-Org/comfy-cli

Tutte le issue di Comfy-Org/comfy-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.