Are you certain that ComfyUI is running the same python as you run when invoking
python3
. If it's anything like my experience with Stable Diffusion on Linux, then I have to build my own Python 3.10 in order to make it work.