win10 安装 tensorflow 并运行helloworld

 
折腾了一下,在win10上成功安装tensorflow.
1 下载安装python,注意一定要是64位(比如python-3.5.1-amd64)的,建议直接下载.exe版本的,在安装的时候选择添加环境变量;
2 下载最新的 tensorflow-1.1.0rc0-cp35-cp35m-win_amd64.whl 包;
3 输入命令pip install tensorflow-1.1.0rc0-cp35-cp35m-win_amd64.whl进行安装;
4 跑HellWorld进行测试;
 
win10 安装 tensorflow 并运行helloworld
 
跑HelloWorld
 
import tensorflow as tf
matrix1 = tf.constant([[3., 3.]])
matrix2 = tf.constant([[2.], [2.]])
product = tf.matmul(matrix1, matrix2)
sess = tf.Session()
result = sess.run(product)
print (result)
sess.close()
 
win10 安装 tensorflow 并运行helloworld





相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2021-11-19
  • 2021-04-30
  • 2021-06-08
  • 2018-01-12
  • 2021-07-02
  • 2021-07-29
猜你喜欢
  • 2021-06-29
  • 2021-06-12
  • 2022-01-18
  • 2021-04-17
  • 2021-05-25
相关资源
相似解决方案