![](https://cocoinit23.com/wp-content/uploads/2021/04/Pytorch_logo-300x60.png)
CUDAを11.1に更新した後にPyTorchを実行した際に表題のエラー。
CUDA10だと通常の pip install torch torchvision torchaudio で良いようだが、11.1はバージョン違いによるエラーが起きた。
公式サイトにあるコマンドメーカーから得られるコマンドを使うことでエラーが消え、PyTorchを実行することが出来た。
pip install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
![](https://cocoinit23.com/wp-content/uploads/2021/04/Screen-Shot-2021-04-02-at-15.50.07-1024x397.png)
参考
![](https://pytorch.org/assets/images/social-share.jpg)
Start Locally
Start Locally
コメント