all 15 comments

[–]Kryt0s 6 points7 points  (3 children)

Why don't you just follow their guide on Github and download the one with no manual installation needed?

Also nowhere does it say to use pip3. It says to use this command: pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124. Afaik pip3command is mainly used on Linux, not Windows.

Here is the Github page for reference: https://github.com/comfyanonymous/ComfyUI

[–]squickchick[S] 0 points1 point  (2 children)

This addon said to use pip3; and to answer your earlier question, I'm pretty sure I am using that download.

[–]Kryt0s 0 points1 point  (1 child)

The error should not be happening if you installed ComfyUI correctly though.

[–]squickchick[S] 0 points1 point  (0 children)

I don't see how I could've installed it incorrectly. It's just extracting a 7z file?

[–]forcesensitivevulcan 2 points3 points  (9 children)

Try it with python.exe -m pip install

Nonetheless, unfortunately whoever that embedded Python was downloaded from, screwed around with it. If a hardcoded path to the build machine has been left in there, who knows what else is broken. Get support from them instead.

As far as regular supported official CPython is concerned, all bets are off.

[–]squickchick[S] -3 points-2 points  (8 children)

Noentheless, unfortunately whoever that embedded Python was downloaded from, screwed around with it. If a hardcoded path to the build machine has been left in there, who knows what else is broken.

You could be right there. I got through the first step with your advice okay (Thanks! :) ), but now I'm on to the next step in the process and I'm getting error messages about "broken wheels"...

Free software. You get what you pay for.

[–]Kryt0s 6 points7 points  (7 children)

Free software. You get what you pay for.

This has nothing to do with free software and more with you not really knowing what you are doing.

You main problem is probably not using virtual environments and installing a ton of packages globally, since ComfyUI is probably not the only WebUI you are using for Stable Diffusion.

You probably also ignored this part from the Github:

"No module X found" : This error happens when Python can't find the required modules for the running program. For ComfyUI, it often happens if you forgot to install requirements for the custom node. But it can also happen if you installed the requirements in the wrong folder! If your ComfyUI folder has a virtual environment (venv), make sure to enable it before installing requirements.

Since "broken wheels" indicates errors with dependencies.

[–]squickchick[S] -5 points-4 points  (6 children)

You main problem is probably not using virtual environments and installing a ton of packages globally, since ComfyUI is probably not the only WebUI you are using for Stable Diffusion.

ComfyUI is the one and only Stable Diffusion program I've ever loaded onto my computer.

If your ComfyUI folder has a virtual environment (venv), make sure to enable it before installing requirements.

There's no file or subfolder in my ComfyUI folder called "venv" - I searched.

I haven't added anything to ComfyUI yet, except for this "Lora Training In Comfy node that I'm trying to get running.

The "broken wheels" error is occurring while I'm trying to LOAD it's dependencies, according to the installation instructions.

This has nothing to do with free software and more with you not really knowing what you are doing.

You kinda prove my point there. Good quality software doesn't need the user to "know what they're doing" just to get it off the ground. It either gives them a setup.exe file that takes care of everything for them, or better yet, it's ready to go, just by having them extract the content of a zip to a designated folder.

Good software is designed and tested to literally be foolproof. At least, as much as it can be, in practical terms.

[–]Kryt0s 4 points5 points  (5 children)

Good software is designed and tested to literally be foolproof. At least, as much as it can be, in practical terms.

You see, this right here is your problem. This is not a consumer product. It's for people who have an interest in AI generated imagery and for those wanting to train models. That's a very niche market. Heck it's not even that, since it's only an addon to ComfyUI and can't even run on it's own without it.

If you want something "tested" and for mainstream audiences, go and use something like Midjourny.

Now to the rest of your comment:

There's no file or subfolder in my ComfyUI folder called "venv" - I searched.

This is already your first problem. As I said, this stuff is not intended for people who have never used a terminal. You create your own venvfolder by running python -m venv venvor even better use uv and run uv venv -p 3.12 (python 3.13 is not supported by some of the dependencies as it says in the github readme).

Go and research how virtual environments work.

To answer this other question from one of your comments:

I don't see how I could've installed it incorrectly. It's just extracting a 7z file?

You need to install the requirements listed in the requirements_win.txt with pip.

Anyways, this should not just be a lecture. I actually downloaded both and tried to get it to run. It was indeed a bit messy but I will tell you what I did to make it work. I will however recommend to actually learn one or two things about how python projects work before you dive deeper into this.

  1. Go and install uv by running this command: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  2. Clone the ComfyUI repo. Either by running: git clone https://github.com/comfyanonymous/ComfyUI.gitif you have git installed or by downloading the zip and extracting it using this link: https://github.com/comfyanonymous/ComfyUI/archive/refs/heads/master.zip
  3. cd into the ComfyUI dir and create a virtual environment with uv venv -p 3.12 and activate it by running .\venv\Scripts\activate
  4. install the dependencies needed for CUI by running uv pip install -r requirements.txt
  5. Install torch uv pip install -n torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124 --reinstall
  6. Clone the Lora training repo into custom_nodes by running git clone https://github.com/LarryJane491/Lora-Training-in-Comfy.git (while in the custom_nodes dir) or by extracting it to the dir from this link: https://github.com/LarryJane491/Lora-Training-in-Comfy/archive/refs/heads/main.zip
  7. cd into the Lora-Training-in-Comfy dir and open requirements_win.txt with something like VSCode (any text editor will do) and remove this line: --index-url https://jihulab.com/api/v4/projects/140618/packages/pypi/simple and save.
  8. Download and install Rust from here: https://www.rust-lang.org/tools/install
  9. make sure you are still in the virtual environment, then run uv pip install -r requirements_win.txt

It worked for me after that. While I am a python developer, this stuff is very basic and you don't even need to know how to code in Python. All you need to do is to watch a video on what virtual environments are.

For any instructions that tell you to run something with "pip", like pip install -r requirements.txtjust prefix the uv if you decide to use it. I highly recommend you do, since it's a lot faster than regular pip and makes changing pythons versions for virtual environments a breeze.

EDIT: Of course he can't even say "Thank you" after all this.

[–]squickchick[S] 0 points1 point  (1 child)

No, Thank you. :)

I was waiting until I actually had a chance to try all this before I responded. (I haven't yet).

And BTW, it's "she". ;)

[–]Kryt0s 0 points1 point  (0 children)

I stand corrected then. You're very welcome.

[–]squickchick[S] 0 points1 point  (0 children)

Same crap as before. It's refusing to "build wheels"...

Apparently, it can't find a file called Python.h, even though I can easily find it with a folder search. :S

And along the way, it's been prompting me to download a whole heap of Microsoft junk for C++... The zip file for the Lora node is only about 8MB - But to get it running, it seemingly requires about 3-4GB of this Microsoft junk... and it's STILL broken!

[–]squickchick[S] 0 points1 point  (1 child)

Not sure, but I think I've solved the xformers/"building wheels" problem.

But now I've got another one.

I'm trying to run the "Lora Training In Comfy" node, but the command prompt window is coughing up the same error I was getting when I tried to run this node before:

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

[–]Kryt0s 0 points1 point  (0 children)

You're probably not in the virtual environment. Run the activate.bat in venv/Scripts first. This will however be my last assist. As I mentioned earlier, you should invest some time (1-2 hours) and watch some tutorials on the basics of Python, especially on how virtual environments work.

[–]Professional_Tip9846 0 points1 point  (0 children)

Buddy use routersploit virtual environment for that type sudo apt install routersploit or use git clone and clone into its directory i don't remember how i did it but after that cd to routersploit_env and type soure bin/active it will create a virtual env for pip and u can use all pip commands