Stable Diffusion WebUI A1111起動時に wheel のビルドエラーが発生する

モガード
質問: Stable Diffusion WebUIのエラー
Stable Diffusion WebUIを起動したら https://github.com/openai/CLIP/archive/d50d76daa670286dd6cacf3bcd80b5e4823fc8e1.zip のエラーが出ました。 対処方法を教えてください。

現象

Stable Diffusion WebUI A1111起動時に次のエラーが発生します。

エラーメッセージ
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

対処法

次のコマンドを実行します。
setuptools を 80.x に固定します。

cd (Stable Diffusion WebUI A1111の配置ディレクトリ)
venv\Scripts\activate
python.exe -m pip install --force-reinstall "setuptools<81" wheel pip


次のコマンドを実行して確認します。

python.exe -c "import pkg_resources; print('OK', pkg_resources.__file__)"
python.exe -m pip show setuptools

以下の結果となります。

<string>:1: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
OK D:\Storage\Image-Gen\a1111-sd15\stable-diffusion-webui\venv\lib\site-packages\pkg_resources\__init__.py

Name: setuptools
Version: 80.10.2
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page:
Author:
Author-email: Python Packaging Authority <distutils-sig@python.org>
License-Expression: MIT
Location: d:\storage\image-gen\a1111-sd15\stable-diffusion-webui\venv\lib\site-packages
Requires:
Required-by:


コマンド実行後に、再度 webui-user.bat を実行します。うまくいけばエラーが出ずに WebUI が起動できます。


numpy と scikit-imageのバイナリ互換性不一致が発生するエラーが出る場合

こちらの記事を参照してください。

AuthorPortraitAlt
著者
iPentecのメインデザイナー
Webページ、Webクリエイティブのデザインを担当。PhotoshopやIllustratorの作業もする。 最近は生成AIの画像生成の沼に沈んでいる。
作成日: 2025-02-21