ubuntu22.04从零开始搭建深度学习环境
一. 安装ubuntu22.04系统
- 具体安装步骤可以参考:win11+ubuntu22.04双系统安装(简洁版)
二. 安装Nvidia显卡驱动
安装之前进入主板BIOS,关闭安全启动!!!

- 更新软件列表
sudo apt-get update
- 安装必要的依赖
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install make
- 根据显卡型号下载对应的驱动,官方驱动下载链接:GeForce® 驱动程序
- 卸载原有驱动(若有)
sudo apt-get remove --purge nvidia*
- 禁用nouveau驱动,在
/etc/modprobe.d/blacklist.conf末尾添加
blacklist nouveau # prevent the kernel from loading the nouveau module at all.
options nouveau modeset=0 # if the nouveau module is built into the kernel directly, disable it.
- 更新初始 ram 文件系统,随后重启计算机
6万+



被折叠的 条评论
为什么被折叠?



