Pythonのバージョンがあわないらしい
自前のGPUを使いたくて
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
これを実行したら、
Looking in indexes: https://download.pytorch.org/whl/cu124 ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch
Geminiの見解
このエラーは、お使いのPythonのバージョンが PyTorch(CUDA 12.4版)に対応していないことが原因で発生しています。
PyTorchのCUDA 12.4向けパッケージは、Python 3.8 〜 3.12 など特定バージョン向けにのみビルドされています。Pythonのバージョンが新しすぎる(例: Python 3.13以上)場合や、古すぎる場合にこのエラーが出ます。
そこで、
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
にしてみたら、インストールはできたけれど、
CPUで認識しているみたい。 だめだ。まあいいや。 Pythonは3.14.7 対応していないのか。
PyTorchのページを見ましたが、Windowsでは無理っぽい。たぶん。





