Windows下Ubuntu双系统安装

2019-05-13  本文已影响0人  Qizht

前期准备

安装系统

安装显卡驱动

以runfile安装为例
 service lightdm start
sudo vi /etc/modprobe.d/blacklist-nvidia.conf
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
sudo sh NVIDIA-Linux-x86_64-418.74.run

系统配置

系统美化
环境相关
更换国内镜像以加速下载
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
安装Tensorflow
  1. 选择手动安装cuda和cudnn,再使用pip安装
  2. 直接使用conda一步到位安装cuda和cudnn (推荐)
    新建虚拟环境后使用以下命令安装tensorflow-gpu版,会同时下载该版本tf对应的cuda和cudnn,并且只在该虚拟环境下有效.
conda install tensorflow-gpu=1.x.0
上一篇 下一篇

猜你喜欢

热点阅读