ImportError: cannot import name 'DIFFUSERS_SLOW_IMPORT' from 'diffusers.utils' #7515
-
In the newest version, when using: from diffusers import AutoencoderKL, DDPMScheduler, UNet2DConditionModel , getting the error : ImportError: cannot import name 'DIFFUSERS_SLOW_IMPORT' from 'diffusers.utils' (/opt/conda/lib/python3.10/site-packages/diffusers/utils/init.py) System Info : Need help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @Neel0101, python -m pip uninstall diffusers && conda uninstall diffusers
conda clean -a
python -m pip cache purge
python -m pip install diffusers |
Beta Was this translation helpful? Give feedback.
-
@tolgacangoz , i am facing the same issue, i tried clone a huggingface repo , but got issue , where the diffusion is not installed , whatever i do nothing seems to be working : here is the link : https://colab.research.google.com/drive/1roi0OaxdDDNbRlwtcHx-eyi2JntbrjhS?usp=sharing |
Beta Was this translation helpful? Give feedback.
After running these:
Restart the jupyter-notebook kernel, then run this:
Let's see what will happen. If this won't work, I suggest you create a new conda environment and try on it. I think you are using the base environment of conda, maybe other libraries you installed before conflict somehow 🤔. Also, could you share the output of this command: