cannot import name 'FluxPipeline' from 'diffusers'

#41
by DrNicefellow - opened

from diffusers import FluxPipeline
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'FluxPipeline' from 'diffusers' (/workspace/text-generation-webui/installer_files/env/lib/python3.11/site-packages/diffusers/init.py)
import diffusers
diffusers.version
'0.30.0.dev0'

Version is not wrong......

I think I had the same problem, at least something similar about importing the FluxPipeline. But I thought I might have done it wrong, since I didn't know what I was doing.
https://huggingface.co./black-forest-labs/FLUX.1-dev/discussions/31#66b3e9ef2ee7b21acab0d1b5

Without uninstalling it first, sometimes not everything gets downloaded. Uninstall it, then reinstall it using git:

pip install git+https://github.com/huggingface/diffusers.git

If that fails, just create a new Python environment.
If that fails, I had to uninstall Anaconda because it wasn't installing things correctly.

Sign up or log in to comment