• 使用miniconda3进行安装
conda create -n tensorflow
conda install tensorflow

输入下面的代码进行测试

import tensorflow as tf
import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]='3'
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

关闭warning信息使用下面的代码,不然会出现一些warning信息

os.environ["TF_CPP_MIN_LOG_LEVEL"]='3'

相关文章:

  • 2023-03-16
  • 2021-07-19
  • 2021-04-23
  • 2022-01-04
  • 2021-11-18
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-11-11
  • 2021-04-12
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案