install diffusers from the github:
!pip install --upgrade git+https://github.com/huggingface/diffusers.git
after verifying that the object class or python script you are importing exists in the github file.