1. #列出已安装的包

conda list

2.查看CUDA版本

nvcc --version

3.使用conda卸载Pytorch

conda uninstall pytorch

4.使用pip卸载Pytorch

pip uninstall pytorch 

5.pytorch安装可到官网https://pytorch.org/自己选择。

Anaconda的一些操作

6.验证CUDA能否使用

import torch

print(torch.cuda.is_available())

结果为True,则可以使用。

相关文章:

  • 2021-09-20
  • 2021-07-06
  • 2021-04-06
  • 2022-01-12
  • 2022-01-03
  • 2021-09-18
  • 2021-11-24
  • 2021-08-20
猜你喜欢
  • 2021-10-04
  • 2022-12-23
  • 2021-11-18
  • 2021-09-10
  • 2021-11-16
  • 2021-09-21
  • 2021-06-24
相关资源
相似解决方案