Ubuntu16安装深度学习环境流程

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

上一篇:kvm实战


下一篇:关于虚拟机报错:N.T M 开启此虚拟机 编辑虚拟机设置 VMware Workstation VMware Workstation无法连接到虚拟机。请确保您有权运行该程序、访问该程序使用的所有目录以