1、anaconda创建环境
conda create --name tf12 python=3.6
2、进入创建的环境
activate tf12
3、安装tf12
先进入tensorflow-1.12.0-cp36-cp36m-win_amd64.whl所在目录
pip install tensorflow-1.12.0-cp36-cp36m-win_amd64.whl
4、测试用例
import tensorflow as tf
hello = tf.constant(‘hello,tensorf’)
sess = tf.Session()
print(sess.run(hello))