0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】torchとCUDAのバージョンが合わずにGPU認識しない

Last updated at Posted at 2025-10-08

対処法

torchをアンインストール

pip uninstall torch torchvision torchaudio -y

指定のCUDA 11.8対応バージョン(2.4系列)をインストール
公式サイトを参照

pip install torch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 --index-url https://download.pytorch.org/whl/cu118

以上

キャッシュのエラーが出た場合はキャッシュ削除すればうまくいく、ときもある。

pip cache purge

P.S. 早くCUDAドライバ更新せねば。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?