error in instalation. #17276
-
|
my spec is
I just dont understand how I always failed to instal stable diffusion, last week i can, it's work perfectly, but since I instal microsoft cc or whatever it is I don't reember, it's seem like nothing gonna run . File "D:\Stable Diffusion 1111\webui\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main note: This error originates from a subprocess, and is likely not a problem with pip. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
I've got the same problem, dont know the answer yet. |
Beta Was this translation helpful? Give feedback.
-
|
You’re not crazy... This line is the key: pkg_resources comes from setuptools — which is a core Python packaging tool. This usually happens when one of these gets installed or updated: We’re going to repair setuptools inside Stable Diffusion’s venv.
his reinstalls the missing core tools (pkg_resources lives inside setuptools). Delete the broken venv Start Stable Diffusion again Double-click:
If SD starts working again, do this to prevent future pain: set PIP_IGNORE_INSTALLED=0 This helps stop Windows/global Python from interfering. good luck |
Beta Was this translation helpful? Give feedback.
-
|
Hello! |
Beta Was this translation helpful? Give feedback.
-
|
Try #17283 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
The solution that worked for me was this: If it doesn't work with the commands from above, use these ones instead (these ones actually solved it for good for me): |
Beta Was this translation helpful? Give feedback.


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.
Go to …