Comfy-Org / comfy-cli

Command Line Interface for Managing ComfyUI
https://comfydocs.org/comfy-cli/getting-started
GNU General Public License v3.0
123 stars 15 forks source link

Globally installed comfy-cli should respect local venv/conda env #75

Open yoland68 opened 1 month ago

yoland68 commented 1 month ago

When comfy command is installed in global context but triggered in venv or conda env, it should use python and pip from that environment

robinjhuang commented 2 weeks ago
Traceback (most recent call last):
  File "/Users/junhanhuang/Documents/ComfyUI/main.py", line 73, in <module>
    import comfy.utils
  File "/Users/junhanhuang/Documents/ComfyUI/comfy/utils.py", line 5, in <module>
    import safetensors.torch
ModuleNotFoundError: No module named 'safetensors'
CompletedProcess(args=['/Users/junhanhuang/miniconda3/bin/python', 'main.py'], returncode=1)
(comfyenv) junhanhuang@Robins-M1Pro custom_nodes  (master) % 

Yeah looks like it uses the default conda python despite I am in a specific conda environment.