目前TensorFlow在Windows下只支持Python 3.x。
python.exe -m pip install --upgrade pip
pip install --upgrade tensorflow
pip install --upgrade tensorflow-gpu
https://developer.nvidia.com/cuda-downloads
https://developer.nvidia.com/cudnn
$ python
...
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
Hello, TensorFlow!
>>> a = tf.constant(1)
>>> b = tf.constant(2)
>>> print(sess.run(a + b))
3
>>>