Open kabupen opened 1 year ago
Kaggle でうまく行かない?
!pip uninstall -y torch torchvision fastai easyocr allennlp torchtext torchaudio pytorch-lightning kornia fairscale
!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --apt-packages libomp5 libopenblas-dev
!rm *.whl pytorch-xla-env-setup.py
!pip install torch_optimizer
を実行した後、
import torch
がまず not found になる
!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --version nightly --apt-packages libomp5 libopenblas-dev
に変更してみた