参考

  1. 清华镜像下载Anaconda2-5.2.0-Linux-x86_64.sh。
  2. 命令行安装。

    1. bash Anaconda2-5.2.0-Linux-x86_64.sh

    安装tensorflow1.4.1-cpu版

    放弃创建虚拟环境,直接用pip安装tensorflow。

    1. ~/anaconda2/bin# ./pip install tensorflow==1.4.1

    安装tensorflow1.4.1-gpu版

    安装gpu版本。安装时服务器从清华镜像下载速度很慢。

    1. ~/anaconda2/bin# ./pip install tensorflow-gpu 1.4.1

    后先将whl文件下载到本地,再上传到服务器,然后用whl文件安装,速度很快!

    1. ~/anaconda2/bin# ./pip install /root/wxg/software/tensorflow_gpu-1.4.1-cp27-cp27mu-manylinux1_x86_64.whl

    安装cuda8和cudnn6

  3. 下载。从Ubuntu安装Tensorflow(GPU版)中的官方下载,需要用邮箱注册账号。

  4. 安装。采用ubuntu 18.04安装cuda 8.0 和cudnn 6.0中的方法,安装成功。

无效尝试

虚拟环境

使用/anaconda2/bin/conda创建虚拟环境,默认的conda是anaconda3下的。

  1. ~/anaconda2/bin# ./conda create --name py2715 python=2.7

创建环境总是失败。

安装cuda

安装cuda8报错

  1. 问题1,Missing recommended library: libGLU.so ```shell

    报错

    Installing the CUDA Toolkit in /usr/local/cuda-8.0 … Missing recommended library: libGLU.so Missing recommended library: libXmu.so Missing recommended library: libGL.so

需要新更新apt-get,否则无法从阿里云下载安装需要的文件

apt-get update

安装libGLU.so

sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev

# sudo ./cuda_8.0.61_375.26_linux.run —override

  1. 2. 问题2Using unsupported Compiler. gcc版本太高,
  2. 按照[gcc高版本编译低版本需要修改的文件](https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ec1cc0263f156f70693a62cf17b254a0029f4852)修改后,仍然报错。
  3. ```shell
  4. ../../../libgcc/shared-object.mk:14: recipe for target 'unwind-dw2.o' failed
  5. make[3]: *** [unwind-dw2.o] Error 1
  6. make[3]: Leaving directory '/root/wxg/software/gcc-4.8.2/gcc-build/x86_64-unknown-linux-gnu/libgcc'
  7. Makefile:17607: recipe for target 'all-stage1-target-libgcc' failed
  8. make[2]: *** [all-stage1-target-libgcc] Error 2
  9. make[2]: Leaving directory '/root/wxg/software/gcc-4.8.2/gcc-build'
  10. Makefile:21493: recipe for target 'stage1-bubble' failed
  11. make[1]: *** [stage1-bubble] Error 2
  12. make[1]: Leaving directory '/root/wxg/software/gcc-4.8.2/gcc-build'
  13. Makefile:891: recipe for target 'all' failed
  14. make: *** [all] Error 2
  1. 安装gcc4.8.5后,仍然报错。
    1. You are attempting to install on an unsupported configuration. Do you wish to continue?