Replies: 23 comments 29 replies
-
|
Im getting the exact same error |
Beta Was this translation helpful? Give feedback.
-
|
I encountered the same problem. |
Beta Was this translation helpful? Give feedback.
-
|
Im getting the exact same error |
Beta Was this translation helpful? Give feedback.
-
|
same here |
Beta Was this translation helpful? Give feedback.
-
|
Repair setuptools in your current venv
venv\Scripts\python.exe -m ensurepip --upgrade
If repair fails — rebuild the venv (most reliable)
This usually fixes the problem 100%. Your models and images are safe, nothing gets deleted. Optional: Prevent Windows from breaking Python in the future Add this to webui-user.bat before the call to Python: set PIP_IGNORE_INSTALLED=0 This forces SD to use its own environment and ignore system Python interference. TL;DR: Your venv’s setuptools is broken. Repair it or rebuild the venv — that’s all that’s stopping CLIP from installing. |
Beta Was this translation helpful? Give feedback.
-
|
CMD commands. the first one is extra important, the /d, don't forget python wants to default to its own environment, you have to indicate you want it to work with the webui's environment when executing most of these package commands, the /d ensures you're working within that environment. cd /d "C:\Stable Diffusion\webui" If that prints setuptools ok: 69.5.1, then install CLIP again: .\venv\Scripts\python.exe -m pip install --no-build-isolation https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (the above command starts at .\venv\ and ends with .zip, it should be all one line/command) this time around, the clip installation package name should look different (that's how you know you're on the right track, I think it'll say open_clip) |
Beta Was this translation helpful? Give feedback.
-
|
Do I have any options if I don't have a local installation but use a Forge Notebook with Google Collab? Or do I have to wait until someone fixes it? |
Beta Was this translation helpful? Give feedback.
-
|
Manullay install CLIP |
Beta Was this translation helpful? Give feedback.
-
|
Hello! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Same |
Beta Was this translation helpful? Give feedback.
-
|
they have to fix the package, as nothing works, no matter how you approach it. |
Beta Was this translation helpful? Give feedback.
-
|
Same issue with pkg pakage => note: This error originates from a subprocess, and is likely not a problem with pip. × Encountered error while generating package metadata. note: This is an issue with the package mentioned above, not pip. (venv) D:\stable-diffusion-webui> |
Beta Was this translation helpful? Give feedback.
-
|
I answered this question in issue #17201 : |
Beta Was this translation helpful? Give feedback.
-
|
Here's Conclusion i discovered here : To Escape from this issue : Edit the file - "Yourwebui\modules\launch_utils.py" to this ::: This helped me a lot by setting up the UI with AMD GPU Successfully. |
Beta Was this translation helpful? Give feedback.
-
|
Had the same problem and i fixed it by doing this: Run commands below in Scripts folder: pip install setuptools==69.5.1 Now when you run webui starting script it should throw another error which is caused by missing repository, i searched and someone found fork of the original repo so you can just run this command again in scripts folder inside your webui: pip install git+https://github.com/joypaul162/Stability-AI-stablediffusion.git It works for me on Python 3.10.19. |
Beta Was this translation helpful? Give feedback.
-
|
I have tried all of the above instructions but not getting past the darned "ModuleNotFoundError: No module named 'pkg_resources'" Now I did notice that when I start the webui.bat it tries to install CLIP again, but I manually installed it. Is the answer maybe in getting it to not install CLIP? |
Beta Was this translation helpful? Give feedback.
-
|
CLIP build failures are frustrating! At RevolutionAI (https://revolutionai.io) we have debugged this many times. Most common fixes:
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
pip install git+https://github.com/openai/CLIP.git
nvcc --version # Should match your PyTorch CUDA
python -c "import torch; print(torch.version.cuda)"
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpuWhat is your CUDA version and the full error message? That would help narrow it down! |
Beta Was this translation helpful? Give feedback.
-
|
CLIP build failures are frustrating! At RevolutionAI (https://revolutionai.io) we maintain SD setups. Solutions:
pip uninstall clip
pip install git+https://github.com/openai/CLIP.git
pip cache purge
rm -rf ~/.cache/pip
pip install clip==1.0
cd stable-diffusion-webui
pip install -e repositories/CLIP
python -c "import torch; print(torch.__version__)"
# Ensure CLIP matches your PyTorchCommon causes:
What error message do you see? |
Beta Was this translation helpful? Give feedback.
-
|
SOMEBODY WITH DISCORD!! ADMINS!! SOMEONE HELP ME PLS I'M SO LOST TwT |
Beta Was this translation helpful? Give feedback.
-
|
The package is broken. Don't bother. Just get Forge instead. It's a better version. |
Beta Was this translation helpful? Give feedback.
-
|
I tried getting Forge but it's hard. Can you help me?
…On Thu, Feb 26, 2026, 5:38 PM axxess-ai ***@***.***> wrote:
The package is broken. Don't bother. Just get Forge instead. It's a better
version.
—
Reply to this email directly, view it on GitHub
<#17275 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B7ANRGEENL2NQNBYDVA2D5L4N6NX3AVCNFSM6AAAAACUNQP5BSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOJUGEYDOMY>
.
You are receiving this because you commented.Message ID:
<AUTOMATIC1111/stable-diffusion-webui/repo-discussions/17275/comments/15941073
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
I followed all the steps but this is what I get. venv "J:\AI\stable-diffusion-webui\venv\Scripts\Python.exe" |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i freshly tried to install AUTOMATIC1111 for the first time and this error popped up. Please help.
venv "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\Scripts\Python.exe"
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.10.1
Commit hash:
Installing clip
Traceback (most recent call last):
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\launch.py", line 48, in
main()
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\launch.py", line 39, in main
prepare_environment()
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 394, in prepare_environment
run_pip(f"install {clip_package}", "clip")
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 144, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\modules\launch_utils.py", line 116, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't install clip.
Command: "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\Scripts\python.exe" -m pip install https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip --prefer-binary
Error code: 1
stdout: Collecting https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip
Using cached https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip (4.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
stderr: error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
[17 lines of output]
Traceback (most recent call last):
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
File "C:\Users\name\Downloads\stable-diffusion-webui-1.10.1\stable-diffusion-webui-1.10.1\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 143, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\name\AppData\Local\Temp\pip-build-env-i9ye5_z9\overlay\Lib\site-packages\setuptools\build_meta.py", line 333, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\name\AppData\Local\Temp\pip-build-env-i9ye5_z9\overlay\Lib\site-packages\setuptools\build_meta.py", line 301, in _get_build_requires
self.run_setup()
File "C:\Users\name\AppData\Local\Temp\pip-build-env-i9ye5_z9\overlay\Lib\site-packages\setuptools\build_meta.py", line 520, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\name\AppData\Local\Temp\pip-build-env-i9ye5_z9\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup
exec(code, locals())
File "", line 3, in
ModuleNotFoundError: No module named 'pkg_resources'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip' when getting requirements to build wheel
Press any key to continue . . .
Beta Was this translation helpful? Give feedback.
All reactions