1.以Python 2.7 ,Ubuntu14.04为基础环境
# Ubuntu/Linux 64-bit, CPU only, Python 2.7:
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled, Python 2.7. Requires CUDA toolkit 7.5 and CuDNN v4. 使用GPU加速,需安装CUDA及CuDNN
# For other versions, see "Install from sources" below.
$ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
笔者 使用的tensorflow包是包含GPU enabled的,所以以下是安装过程中出现问题的相应笔记
执行相应的tensorflow安装命令后,开始安装CUDA及CuDNN
下载并安装 Cuda Toolkit 7.5或8.0