質問するログイン新規登録

Q&A

解決済

1回答

427閲覧

stable-point-aware-3dのrequirements.txtインストールエラー原因がわからない

magma189

総合スコア4

CUDA

CUDAは並列計算プラットフォームであり、Nvidia GPU(Graphics Processing Units)向けのプログラミングモデルです。CUDAは様々なプログラミング言語、ライブラリ、APIを通してNvidiaにインターフェイスを提供します。

PyTorch

PyTorchは、オープンソースのPython向けの機械学習ライブラリ。Facebookの人工知能研究グループが開発を主導しています。強力なGPUサポートを備えたテンソル計算、テープベースの自動微分による柔軟なニューラルネットワークの記述が可能です。

AI(人工知能)

AI(人工知能)とは、言語の理解や推論、問題解決などの知的行動を人間に代わってコンピューターに行わせる技術のことです。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2026/03/23 02:53

0

0

実現したいこと

stable-point-aware-3dをrequirements.txtインストールをエラー解消したいです

発生している問題・分からないこと

stable-point-aware-3dをrequirements.txtインストール中にエラーが発生しました。
似た現象をご存じの方、原因調査方法をご存じの方、おられましたら助力願います。

エラーメッセージ

error

1 error: subprocess-exited-with-error 2 3 × git clone --filter=blob:none --quiet https://github.com/SunzeY/AlphaCLIP.git 'C:\Users\username\AppData\Local\Temp\pip-req-build-y23p58lj' did not run successfully. 4 │ exit code: 128 5 ╰─> No available output. 6 7 note: This error originates from a subprocess, and is likely not a problem with pip. 8ERROR: Failed to build 'git+https://github.com/SunzeY/AlphaCLIP.git' when git clone --filter=blob:none --quiet https://github.com/sunzey/alphaclip.git 'c:\users\username\appdata\local\temp\pip-req-build-y23p58lj' 9

該当のソースコード

pip install -r requirements.txt

試したこと・調べたこと

  • teratailやGoogle等で検索した
  • ソースコードを自分なりに変更した
  • 知人に聞いた
  • その他
上記の詳細・結果

インストール手順は以下URLを参照しました
https://note.com/aonekoss/n/n181b0f03c87a
CUDA ToolKitとtorch pytorch の組み合わせをv12.4、v13.0と試したがエラー内容変わりません
Visual Studio2026の「C++デスクトップ開発」を追加してもエラー内容変わりません
requirements.txtを以下URL内容に変更してもエラー内容変わりません
https://huggingface.co/spaces/stabilityai/stable-point-aware-3d/blob/main/requirements.txt

https://huggingface.co/spaces/stabilityai/stable-point-aware-3d/blob/main/requirements.txt

補足

■インストール環境
・PC本体:
Visual Studio:
2019 C++によるデスクトップ開発
2022 C++によるデスクトップ開発/Python開発/Node.js開発/.NETデスクトップ開発/
Python:python --version
Python 3.14.3 他に3.10 3.12あり
CUDA Toolkit:nvcc --version
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0
・仮想環境Venv内:
Python:python --version
Python 3.10.11
CUDA Toolkit:nvcc --version
Cuda compilation tools, release 12.8, V12.8.61
Build cuda_12.8.r12.8/compiler.35404655_0
pip list:
Package Version


clip 1.0
colorama 0.4.6
filelock 3.20.0
fsspec 2025.12.0
ftfy 6.3.1
Jinja2 3.1.6
loralib 0.1.2
MarkupSafe 3.0.2
mpmath 1.3.0
networkx 3.4.2
numpy 2.2.6
packaging 26.0
pillow 12.0.0
pip 26.0.1
regex 2026.2.28
setuptools 69.5.1
sympy 1.14.0
torch 2.10.0+cu128
torchvision 0.25.0+cu128
tqdm 4.67.3
typing_extensions 4.15.0
wcwidth 0.6.0
wheel 0.46.3

■requirements.txt内容
einops==0.7.0
jaxtyping==0.2.31
omegaconf==2.3.0
transformers==4.42.3
loralib==0.1.2
git+https://github.com/openai/CLIP.git
git+https://github.com/SunzeY/AlphaCLIP.git
trimesh==4.4.1
numpy==1.26.4
huggingface-hub==0.23.4
transparent-background==1.3.3
./texture_baker/
./uv_unwrapper/

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

fiveHundred

2026/03/23 03:48

gitのインストールおよびPATHへの追加は済んでいますか?
magma189

2026/03/23 04:29

gitはPCとvenvともにgit helpが表示できたので大丈夫だと思われます。 PATHは今確認してみましたが、よくわかりません。 ユーザー環境変数のPathにはPython312とPython310があります。 システム環境変数のPathにはCUDAv12.8,v13.0,v13.1,v12,4があります。 すみませんが、チェック内容を教えて頂けるとありがたく存じます。
fiveHundred

2026/03/23 05:03

ここでのPATHはPythonではなくgitのほうです。 gitコマンドが動いているのであれば、設定出来てるはずなので、私が思ってた原因ではなさそうです。
magma189

2026/03/23 05:14

そうでしたか。。。すみません、 因みにユーザー環境変数のPathの最上位をPython310にしたらエラー内容が変わりました。 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 'git+https://github.com/SunzeY/AlphaCLIP.git' when getting requirements to build wheel
guest

回答1

0

ベストアンサー

https://github.com/openai/CLIP/issues/528
と同じかなと思います

https://setuptools.pypa.io/en/latest/history.html#v82-0-0
pkg_resourcesはsetuptoolsのv82.0.0で削除されました。昔から予告されていたものが実施された形です

https://github.com/openai/CLIP/issues/528#issuecomment-3883313712 の通り、いったん

shell

1pip install --force-reinstall pip==25.2 setuptools==80.10.2

を仮想環境で実行してバージョンダウンするというワークアラウンドが有効かもしれません

(長期的には https://github.com/SunzeY/AlphaCLIP からのフォークを保守するしかないかも)


  1. requirements.txtから下の2行を消す
    git+https://github.com/openai/CLIP.git git+https://github.com/SunzeY/AlphaCLIP.git
  2. 仮想環境に入る
  3. setuptoolsのバージョンを固定

    shell

    1pip install --force-reinstall pip==25.2 setuptools==80.10.2
  4. 先にCLIP類を --no-build-isolation 付きでビルド( https://github.com/openai/CLIP/issues/528#issuecomment-3884279862 が参考)

    shell

    1pip install git+https://github.com/openai/CLIP.git --no-build-isolation 2pip install git+https://github.com/SunzeY/AlphaCLIP.git --no-build-isolation
  5. 残りを入れる

    shell

    1pip install -r requirements.txt

とかかなと思います
最後まで確認はしてませんが

投稿2026/03/23 05:57

編集2026/03/25 01:31
quickquip

総合スコア11364

magma189

2026/03/23 06:36

情報頂きありがとうございます。 pkg_resourcesはsetuptoolsのv82.0.0で削除されたようで、過去に導入したバージョンが何かしらの悪さをしているかもしれません。 まずは提示頂いたスクリプトを試してみます
magma189

2026/03/23 08:34

回答ありがとうございます。試してみましたが解決できませんでした。 ・venvで提示スクリプト実行 ・PC上で提示スクリプト実行 ・pipのみ最新にする ・setuptoolsを69.5.1にする さらに調査続行します
magma189

2026/03/25 02:30

複雑な情報を手順に落として頂いて有難うございます。 諦めかけていましたが希望が見えました。 早速試してみます。
magma189

2026/03/25 09:59

おかげ様でCLIP AlphaCLIPはエラーなく導入できました。 今はtexture_bakerでエラーが出ており、調査しております。 もし調査方法等わかりましたら宜しくお願いします。 エラー表示: RuntimeError: Error compiling objects for extension Failed to build installable wheels for some pyproject.toml based projects requirements.txtを以下に分割して実行しました requirements1.txt →OK einops==0.7.0 jaxtyping==0.2.31 omegaconf==2.3.0 transformers==4.42.3 loralib==0.1.2 requirements.txtから除外し別途適用 →OK git+https://github.com/openai/CLIP.git git+https://github.com/SunzeY/AlphaCLIP.git requirements2.txt →OK trimesh==4.4.1 numpy==1.26.4 huggingface-hub==0.23.4 transparent-background==1.3.3 requirements3.txt →NG ./texture_baker/ requirements4.txt ./uv_unwrapper/
magma189

2026/03/25 10:12

因みに以下のコマンドです。 pip install --no-build-isolation -r requirements1.txt pip install git+https://github.com/openai/CLIP.git --no-build-isolation pip install git+https://github.com/SunzeY/AlphaCLIP.git --no-build-isolation pip install --no-build-isolation -r requirements2.txt pip install --no-build-isolation -r requirements3.txt →NG pip install --no-build-isolation -r requirements4.txt
magma189

2026/03/26 01:34

おかげ様でエラー解消もかなり進んでエラー内容もかなり変わったので、当スレッドをクローズし別スレッドに移行しようと思います。 ご対応頂きありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.29%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問