【学习记录】ubuntu安装cuda驱动和anaconda

nvidia驱动下载:https://developer.nvidia.com/cuda-toolkit-archive
选择对应的版本,逐条运行官方给出的代码,如:

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin

sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600

wget https://developer.download.nvidia.com/compute/cuda/11.6.1/local_installers/cuda-repo-ubuntu2004-11-6-local_11.6.1-510.47.03-1_amd64.deb

sudo dpkg -i cuda-repo-ubuntu2004-11-6-local_11.6.1-510.47.03-1_amd64.deb

sudo apt-key add /var/cuda-repo-ubuntu2004-11-6-local/7fa2af80.pub

sudo apt-get update

sudo apt-get -y install cuda

anaconda下载:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
选择对于的版本下载,下载完后会 保存一个xxx.sh文件,执行以下代码进行安装:

sudo bash xxx.sh

安装教程:详细教程

你可能感兴趣的:(学习记录,python,深度学习,ubuntu)