ubuntu16.04 ananconda tensorflow


ABSTRACT

descripe :
date     : 2018.06.06
platform : NVIDIA GeForce 1080Ti
version  : ubuntu        - 16.04 LTS(自带的是python3.5,所以在安装tensorflow时,需要注意版本)
           NVIDIA-driver - 384.13
           CUDA          - 9.0
           cuDNN         - 7.1.2
           tensorflow    - 1.8
      

 ==========================

首先在search your computer中输入upd,进入software&updates,更改下载源(推荐清华或阿里作为下载源。)

 首先sudo apt update,然后sudo apt upgrade

 

下载synaptic  (新立得 ——————1款好用的软件包管理器)


==========================

STEP 1 : install nvidia driver

reference : https://blog.csdn.net/u012759136/article/details/53355781

 

修改驱动文件权限

sudo chmod 777 NVIDIA-Linux-x86_64-410.78.run


    1.  sudo apt-get remove –purge nvidia*
    2.  sudo vim /etc/modprobe.d/blacklist.conf (sudo apt-get install vim-gtk)
    3.  add "blacklist nouveau" at the end of file
    4.  sudo update-initramfs -u
    5.  sudo reboot
    6.  Ctrl+Alt+F1
    7.  lsmod | grep nouveau
    8.  sudo /etc/init.d/lightdm stop
    9.  cd ${nvidia_driver_path}
    10. sudo sh NVIDIA-Linux-x86_64-384.130.run –no-x-check –no-nouveau-check –no-opengl-files

安装(注意 参数)


  sudo ./NVIDIA-Linux-x86_64-384.13.run –no-opengl-files

–no-opengl-files 只安装驱动文件,不安装OpenGL文件。这个参数最重要
–no-x-check 安装驱动时不检查X服务
–no-nouveau-check 安装驱动时不检查nouveau 
后面两个参数可不加。

在安装驱动的时候,有一步问你”Would you like to run the nvidia-xconfig utility to automatically update your X configuration file…”什么的,选择 No

    11. sudo reboot

    
    Please run the commands, if the desktop can not login after reboot.
    1. cd /usr/share/X11/xorg.conf.d/
    2. sudo mv nvidia-drm-outputclass.conf nvidia-drm-outputclass.conf.bak
    3. sudo reboot
    
==========================

STEP 2: install CUDA

    1. Download CUDA 9.0 at https://developer.nvidia.com/cuda-90-download-archive
       select Linux, x86_64, Ubuntu, 16.04, runfile(local) and download base installer,(the download file name is "cuda_9.0.176_384.81_linux.run")
    2. cd ${cuda_9.0_path}
    3. sudo sh cuda_9.0.176_384.81_linux.run

 

sudo sh cuda_9.0.176.1_linux.run --override

~~~~~~~~~~~~~~~

Error: unsupported compiler: 7.3.0. Use --override to override this check.
Missing recommended library: libGLU.so
Missing recommended library: libX11.so
Missing recommended library: libXi.so
Missing recommended library: libXmu.so
Missing recommended library: libGL.so

Error: cannot find Toolkit in /usr/local/cuda-9.0

===========
= Summary =
===========

Driver:   Not Selected
Toolkit:  Installation Failed. Using unsupported Compiler.
Samples:  Cannot find Toolkit in /usr/local/cuda-9.0

 

 


    4. enter n, y, '\n', y, y, '\n' step by step, like this. ('\n' means enter)

有一个关键是会让你选择是否安装Graphics Driver for Linux-x86_64:XXXX版本,这个地方必须选择no!否则会覆盖之前的驱动。
    
        Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
        (y)es/(n)o/(q)uit: n

        Install the CUDA 9.0 Toolkit?
        (y)es/(n)o/(q)uit: y

        Enter Toolkit Location
         [ default is /usr/local/cuda-9.0 ]:

        Do you want to install a symbolic link at /usr/local/cuda?
        (y)es/(n)o/(q)uit: y

        Install the CUDA 9.0 Samples?
        (y)es/(n)o/(q)uit: y

        Enter CUDA Samples Location
         [ default is /home/ai_group ]:

        Installing the CUDA Toolkit in /usr/local/cuda-9.0 ...
        Missing recommended library: libGLU.so
        Missing recommende

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值