Skip to content

ImportError: cannot import name 'DIFFUSERS_SLOW_IMPORT' from 'diffusers.utils' #7515

Answered by tolgacangoz
Neel0101 asked this question in Q&A
Discussion options

You must be logged in to vote

After running these:

!python -m pip uninstall diffusers -y && conda uninstall diffusers -y
!conda clean -ay
!python -m pip cache purge

Restart the jupyter-notebook kernel, then run this:

!python -m pip install diffusers
from diffusers import AutoencoderKL, DDPMScheduler, UNet2DConditionModel

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:

diffusers-cli env

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@Neel0101
Comment options

@tolgacangoz
Comment options

@Neel0101
Comment options

@tolgacangoz
Comment options

Answer selected by Neel0101
@Neel0101
Comment options

@tolgacangoz
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants