具体安装操作看https://blog.youkuaiyun.com/PursueWin/article/details/97563574,亲测有效
测试代码
:
import tensorflow as tf
tf.compat.v1.disable_eager_execution()#保证sess.run()能够正常运行
hello=tf.constant("tf 666")
sess = tf.compat.v1.Session()
print(sess.run(hello))