Skip to content
Discussion options

You must be logged in to vote

You’re not crazy...

This line is the key:
ModuleNotFoundError: No module named 'pkg_resources'

pkg_resources comes from setuptools — which is a core Python packaging tool.
If it’s missing, your Python environment is basically half-broken, and anything that tries to build packages (like Stable Diffusion installing CLIP) will explode exactly like this.

This usually happens when one of these gets installed or updated:
Microsoft Visual Studio
Microsoft C++ Build Tools
Some other app that silently installs its own Python or messes with PATH
It doesn’t break Stable Diffusion directly — it breaks Python’s packaging system.

We’re going to repair setuptools inside Stable Diffusion’s venv.

  1. Go to …

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@BonsayCreativity
Comment options

Comment options

You must be logged in to vote
1 reply
@BonsayCreativity
Comment options

Answer selected by BonsayCreativity
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
5 participants