1. 程式人生 > >windows10下TensorFlow安裝記錄

windows10下TensorFlow安裝記錄

1.安裝anaconda

安裝最新版:https://repo.anaconda.com/archive/Anaconda3-5.3.0-Windows-x86_64.exe

加入環境變數:

path加anaconda安裝目錄

path加anaconda安裝目錄/scripts

 

 

2。通過conda安裝TensorFlow

conda install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
conda install tensorflow
等執行完檢查包可發現

 

 

3.Hello World

import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

a = tf.constant(10)
b = tf.constant(32)
print(sess.run(a+b))