步骤1:安装anaconda
wget -O Anaconda3-5.2.0-Linux-x86_64.sh https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh
注:根据需要选择安装版本
bash Anaconda3-5.2.0-Linux-x86_64.sh
注:如果提测bunzip2找不到,yum install bzip2即可
验证是否安装完成:
conda --version
创建tensorflow环境
conda create -n tensorflow python=3.5
切换环境
source activate tensorflow
安装tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.12.0-cp35-cp35m-linux_x86_64.whl