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?

More than 1 year has passed since last update.

torchインストール時に出るzipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/cudnn_ops_infer64_8.dll'関係のエラーについて

Posted at

発生

CUDA11.8 をインストールし、
PyTorch に書いてあるコマンド通りにインストールすると、

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

zipfile.BadZipFile: Bad CRC-32 for file 'torch/lib/cudnn_ops_infer64_8.dll'みたいなエラーが出る

解決

--no-cache オプションをつけることで解決できるらしいので、--force-reinstall と合わせて実行すると成功した

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 --force-reinstall --no-cache

参考

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?