Ubuntu16配置深度学习指南
1.安装anaconda
bash Andconda.....sh
一路enter
2.换源
2.1 备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2.2 文件赋予权限
sudo chmod 777 /etc/apt/sources.list
2.3 编辑文件
sudo gedit /etc/apt/sources.list
2.4 添加源
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
2.5 更新源
sudo apt update
2.6 其他换源方法
软件和更新-下载自其他站点
3.安装显卡驱动
软件与更新-驱动-应用-重启
4.安装cuda10
NVIDIA官网
sudo sh cuda_11.1.0_455.23.05_linux.run
一路yes
第三个Install NVIDIA Graphics Driver :No
reboot重启
5.安装cudnn7.6
conda install cudnn=7.6
6.安装pytorch-gpu
pytorch官网
建议conda安装,会顺便安装cudnn,把10.1改成10.0