1.下载需要的tf版本,在这里。
2.打开Anaconda prompt,进入下载好的tf路径下,
输入pip install tensorflow-1.13.1-cp37-cp37m-win_amd64.whl
(这个是我下载的tf版本)
如
3.验证是否能使用。
import tensorflow as tf
hello = tf.constant('hello,tf')
sess = tf.Session()
print(sess.run(hello))
结果为:
b'hello,tf'
表示可以使用。
参考:https://blog.csdn.net/Fourierrr_/article/details/79749899