系统相关
首页 > 系统相关> > Ubuntu16安装深度学习环境流程

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

标签:restricted,流程,ubuntu,xenial,aliyun,深度,Ubuntu16,main,multiverse
来源: https://blog.csdn.net/weixin_44092590/article/details/108855182