comfy-cli icon indicating copy to clipboard operation
comfy-cli copied to clipboard

Installing via pip, command not found

Open astralmedia opened this issue 6 months ago • 2 comments

Hey! I work with pip and conda daily, but for some reason cannot crack this:

I am on windows 11, opened gitbash terminal, typed pip install comfy-cli installs correctly...

comfy: command not found anytime I try to use it. Restarted terminal, computer but still no luck.

Any ideas where I may be going wrong?

astralmedia avatar Jul 02 '25 14:07 astralmedia

Hi @astralmedia! I'm Dosu and I’m helping the comfy-cli team.

This is a common issue on Windows, especially with Git Bash. The comfy-cli package should install three commands: comfy, comfy-cli, and comfycli—all should be available after install if your PATH is set up right and the install succeeded [pyproject.toml entry points].

Here’s a quick checklist to troubleshoot:

  1. Check if the scripts exist: Look in your Python Scripts directory (for example, C:\Users\<username>\AppData\Local\Programs\Python\PythonXX\Scripts) for comfy.exe, comfy-cli.exe, or comfycli.exe.
  2. Make sure that directory is in your PATH. In Git Bash, you can check with echo $PATH.
  3. Try running the command with the full path, e.g. /c/Users/<username>/AppData/Local/Programs/Python/PythonXX/Scripts/comfy.
  4. There’s a known issue with the latest version of the click library (8.2.0) breaking comfy-cli commands. If the script exists but won’t run, try reinstalling with:
    pip install --force-reinstall comfy-cli click==8.1.8
    
    This has resolved the issue for others [click incompatibility workaround].

If the scripts aren’t present, double-check which Python environment pip is installing to (sometimes pip and python point to different installs or environments). Let me know what you find!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

dosubot[bot] avatar Jul 02 '25 14:07 dosubot[bot]

Does the command python -m comfy_cli work for you?

And what python -m pip show -f comfy-cli command outputs for you?

bigcat88 avatar Jul 29 '25 13:07 bigcat88