For error: "cannot import name 'packaging' from 'pkg_resources'"
The solution: Ensure that Python 3.12 or lower is installed with a comfy UI portable. Then go inside ComfyUI_windows_portable\python_embeded folder and run this command.
python.exe -m pip install setuptools==65.5.1
A comfy update installs setuptools-70.0.0, you need to downgrade for it to work.
For error: "cannot import name 'packaging' from 'pkg_resources'"
The solution: Ensure that Python 3.12 or lower is installed with a comfy UI portable. Then go inside ComfyUI_windows_portable\python_embeded folder and run this command.
python.exe -m pip install setuptools==65.5.1
A comfy update installs setuptools-70.0.0, you need to downgrade for it to work.
copy from: https://www.youtube.com/watch?v=wEd1wPlCBaQ&t=309s