ZHO-ZHO-ZHO / ComfyUI-YoloWorld-EfficientSAM

Unofficial implementation of YOLO-World + EfficientSAM for ComfyUI
GNU General Public License v3.0
588 stars 52 forks source link

The solution of error: "cannot import name 'packaging' from 'pkg_resources'" #82

Open huangkun1985 opened 2 months ago

huangkun1985 commented 2 months ago

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