Installing via pip, command not found
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?
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:
- Check if the scripts exist: Look in your Python Scripts directory (for example,
C:\Users\<username>\AppData\Local\Programs\Python\PythonXX\Scripts) forcomfy.exe,comfy-cli.exe, orcomfycli.exe. - Make sure that directory is in your PATH. In Git Bash, you can check with
echo $PATH. - Try running the command with the full path, e.g.
/c/Users/<username>/AppData/Local/Programs/Python/PythonXX/Scripts/comfy. - There’s a known issue with the latest version of the
clicklibrary (8.2.0) breaking comfy-cli commands. If the script exists but won’t run, try reinstalling with:
This has resolved the issue for others [click incompatibility workaround].pip install --force-reinstall comfy-cli click==8.1.8
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
Does the command python -m comfy_cli work for you?
And what python -m pip show -f comfy-cli command outputs for you?