不小心安装错了cuda版本(wsl环境下),网上教程每一个没找到一个对的。那几个说进入bin运行cuda_uninstall的也都不行。
打开官方文档,点击18. Removing CUDA Toolkit and Driver,官方教程如下:
Ubuntu and Debian
To remove CUDA Toolkit:
sudo apt-get --purge remove "*cuda*" "*cublas*" "*cufft*" "*cufile*" "*curand*" \
"*cusolver*" "*cusparse*" "*gds-tools*" "*npp*" "*nvjpeg*" "nsight*" "*nvvm*"
To remove NVIDIA Drivers:
sudo apt-get --purge remove "*nvidia*" "libxnvctrl*"
To clean up the uninstall:
sudo apt-get autoremove
NVIDIA CUDA Installation Guide for Linux
这种东西还是得看官方文档,然后再照教程安装即可,命令行都给你一条一条列好的。