ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

create venv for each node respectively

Open longge0126 opened this issue 1 year ago • 7 comments

some nodes cause conflicts each other(they need different edition), may i create virtural environment to run the requirement for each node respectively in portable edition?

longge0126 avatar Mar 30 '24 02:03 longge0126

no, it is not possible from technical perspective.

only a separate venv for one worklow is possible

bigcat88 avatar Mar 30 '24 17:03 bigcat88

You can create a ComfyUI with miniconda venv for experimental extension like I do, I have three comfyui install everyone with his own venv folder:

  • :: ComfyUI for all apparel model like VITON | ODD diffusion etc... that use old library and cause conflict with other node extensions.
  • :: ComfyUI stable for all stable extensions
  • :: ComfyUI3d for all 3d technology like 3DPack | TripoSR etc...

kakachiex2 avatar Mar 30 '24 21:03 kakachiex2

You can create a ComfyUI with miniconda venv for experimental extension like I do, I have three comfyui install everyone with his own venv folder:

  • :: ComfyUI for all apparel model like VITON | ODD diffusion etc... that use old library and cause conflict with other node extensions.
  • :: ComfyUI stable for all stable extensions
  • :: ComfyUI3d for all 3d technology like 3DPack | TripoSR etc...

en……then how to decide which comfyui should you launch? does it mean you may lose the other two comfyui ‘ nodes everytime?

longge0126 avatar Mar 31 '24 00:03 longge0126

Every comfyui is independent with his own folder, you launch the one you need at the moment keep in mind you need lots of space for this

kakachiex2 avatar Mar 31 '24 01:03 kakachiex2

This is my folder structure

  • First one stable version
  • Second for 3DPack and all 3d technology
  • Third experimental all unstable extension is installed in this version Screenshot 2024-03-30 213323

kakachiex2 avatar Mar 31 '24 01:03 kakachiex2

Inside experimental folder this is the structure: :: > ComfyUI folder :: > python_miniconda_env Screenshot 2024-03-30 213953

kakachiex2 avatar Mar 31 '24 01:03 kakachiex2

Inside experimental folder this is the structure: :: > ComfyUI folder :: > python_miniconda_env Screenshot 2024-03-30 213953

so i still cant use conflict nodes at the same time?

longge0126 avatar Mar 31 '24 01:03 longge0126