Tensorflow之安装

1.fellow the instruction of https://www.tensorflow.org/install/install_linux#installing_with_anaconda

2.anaconda安装,修改~/.bash_profile为

export PATH=~/anaconda2/bin:/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export CUDA_ROOT=/usr/local/cuda/
export LD_LIBRARY_PATH=/opt/cudnn/lib64:$LD_LIBRARY_PATH
export LIBRARY_PATH=$LIBRARY_PATH:/opt/cudnn/lib64
export CPATH=$CPATH:/opt/cudnn/include

3. pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp34-cp34m-linux_x86_64.whl

原文地址:https://www.cnblogs.com/huangshiyu13/p/5893936.html