Installing "pip" In Comfy UI

Hi Everyone
Just to let you guy’s know , I have had a working Comfy Ui up and running before, but when i ran in to errors and conflicts especially to do with having to open terminal windows and having to deal with " pip " commands and the like well ! , My head would explode and that would be that !, So this time I decided , Time to learn, but as soon as I started POW !, My First issue !!!
I’ll make this a short as possible, I completely reloaded my Win 11 OS ( Fresh install on C: ) , I have Cuda Toolkit 12.9, Git 2.50.1, Python 3.12.10, and my Comfy Ui ( Portable ) is on a completely different SSD drive ( Namely H: Drive ) because its a 2Tb Drive
Here is my problem, Comfy uses Pip commands to install various stuff amongst other stuff that it does , I do not have Pip installed on my system ( Meaning C: drive ) anywhere, It usually or should reside in the, in my case the " C:\Users\Polarstream\AppData\Roaming " folder, from what i have found out so far , but it is not in there, and it is certainly not anywhere in my new ( Never used and fresh ) Comfy install folder , which is the only thing I have on my SSD H: drive
I cannot find a single tutorial or video that explains EXACTLY how to either install " Pip " on windows ( AKA " A Global install " from what i have read ) or how to install it in in my comfy UI H: folder
Some of you are probably Laughing at the screen right now saying , what the H**L is this guy on !, but do i have to set up “Pip” on windows first then point My Comfy UI ) portable at it , or do i have to set it up in Comfy UI on its own , or in both places ?, and if i do , how exactly do i achieve all that ?
Sorry for the lOOOONG !!! Question
Thank you in advance

Before we get into anything, just to verify that pip really is not installed (usually it should be installed along with python), open the folder where you extracted ComfyUI portable, inside there should be a folder called python_embeded, open this folder. After opening it, click on the address bar and type cmd. In cmd, run the following command
python.exe -m pip --version
This should return an output stating the version of pip. If nothing is returned, you can refer to the official pip documentation to install pip or chatgpt.

Important note:
ComfyUI portable comes with its own environment, whenever you need ti install any package using “pip”, make sure you are in the python_embeded folder and use the following command “python.exe -m pip install” followed by the desired package you’d like to install.

Thank you IceB2 for your reply
I will try the things you suggested for sure
As i mentioned before i have installed comfy UI before , but what i didn’t mention was that i had absolutely NO CLUE ! at what i was doing ( I am Not a coder in any sense of the word !!)
But, when i have made fresh installations of Comfy , None of them seem to have " Pip " enabled
So, i am guessing " Pip " is something that you have to manually enable in a Normal fresh windows install as much as enabling it in side of a comfy install
Anyway thank you for your input and hopefully , I’ll get some success here

Use the portable version. It uses its own Venv, and comes with everything needed already.

Just don’t mix up the global installation at your pc with the python installation that is in this venv then. As iceb2 already mentioned, make sure that you are in the comfy repository before you toy around with pip.

Hi Arunderan
As I mentioned before, I am not proficient with coding , But I have a deep interest into the whole Ai Image Generating thing .
I am an electrical Engineer by trade which means I possess some sort of a technical mind , but Coding and the knowledge needed when you run into problems with this stuff is mind-boggling, it’s like having to learn a whole new language.
I thank you for your reply, as I mentioned to IceB2 I WILL try all that is suggested here , and get back to you with my results, I learn a little piece of the puzzle, the more helpful advice I receive
Thank you

Hi IceB2

Sorry , that it took me a day to try this but, I did as you suggested and it returned the following result ( by the way my Comfy UI installation was on ( i : ) drive not H: )
see below :

I:\THE COMFY 2025 INSTALLATION FOLDER ( Test )\ComfyUI_windows_portable\python_embeded>python.exe -m pip --version
pip 25.1.1 from I:\THE COMFY 2025 INSTALLATION FOLDER ( Test )\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pip (python 3.12)

I Guess this means I have Pip installed ? ( In the comfy folder that is ? )

Thank you

I still wonder why you need Pip. There should not be any coding involved, and you normally should not even need to use Pip once. Not as a beginner anyways. Just install , or better said extract the portable Comfy version, install the Comfy manager (still needed to do manually), start Comfy with the bat, grab one of the default workflows from the Workflow / Browse templates menu, download the missing weights and put them into the correct folders, and you should be ready to go.

Hi Arunderan
As I said before, This is my second attempt at installing Comfy ( Portable ), ( I wanted to do this right this time )
To explain why Pip is an issue with me , one of the problems i had with the first install of Comfy i tried was The " Reactor Face swap node " setup , I eventually got it working the first time ( To this day i couldn’t really tell you how I managed it ! ), but as soon as i updated everything in comfy , it stopped working , the troubleshooting to resolve the issue of this node was FULL of " Pip " commands that quite simply i didn’t understand
I know, some would say i should just give up with this, but i am not a quitter !, I want to learn this stuff and learn how to resolve issues , electrical engineering is the same , you get an issue !, you have to learn how to solve it !
Thank you for your reply

Ah i see. There are unfortunately a few nodes around that breaks ComfyUI by design. They toy around with python version, they toy around with torch version. And messes up the comfyUI installation big time then. In case that the torch version doesn’t match the original anymore then that was it. And that’s what you most probably ran into. But any try to fix this mess will most probably fail, and is in best case a big time sink. I wouldn’t even bother. Make it new is the better and easier way.

You can try to isolate the baddie. Then you can create a special comfyui installation for just this node. I had this with the Deforum node. Just make sure that you never update it. It will break the installation again.

But honestly i would eagerly keep my hands away from such nodes. No custom node should modify python or torch of the installation. And there should not be the need to toy around at the console to fix a broken installation that is destroyed by a node where the creator takes willingly into account to mess up the end users installation.

In case you want to test exotic stuff, there are other solutions besides ComfyUI. I have for example Framepack running in Pinokio since it runs as double as fast than in ComfyUI. In Pinokio there is FaceFusion. I haven’t found ReActor though over there. But maybe it runs in Fooocus or other platforms then.

Kind regards
Arunderan

1 Like

@AiGenerator1000 if you’re still trying, can you please share with me what are the errors displayed by the console when you attempt to launch comfyui.