安装环境:Centos7,anaconda3,python3.6
方式一:
(1) 建立一个 conda 计算环境名字叫tensorflow:
conda create -n tensorflow python=3.6
一定要指定python版本,否则安装失败。
(2)激活tensorflow环境,然后使用其中的 pip 安装 TensorFlow。当使用easy_install使用–ignore-installed标记防止错误的产生。
$ source activate tensorflow
(tensorflow)$ # Your prompt should change
(2)激活tensorflow环境,然后使用其中的 pip 安装 TensorFlow。当使用easy_install使用–ignore-installed标记防止错误的产生。
$ source activate tensorflow
(tensorflow)$ # Your prompt should change
(3)安装tensorflow
(tensorflow)$ conda install tensorflow
(4)验证安装
$ (tensorflow)python
import tensorflow as tf
表示成功。