1、安装Python,设置环境变量
下载地址:https://www.python.org/downloads/windows/
2、下载安装pip
下载地址:https://pypi.python.org/pypi/pip
3、注意:NVD显卡支持GPU加速de需要安装CUDA和cuDNN;
推荐文章:http://blog.csdn.net/duwangthefirst/article/details/79078306
4、下载TensorFlow
下载地址:https://pypi.python.org/pypi/tensorflow#downloads
error:failed to create process.
python -m pip install tensorflow-1.6.0rc1-cp36-cp36m-win_amd64.whl
等一会儿,提示安装完成。
Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
100% |████████████████████████████████| 327kB 98kB/s
Installing collected packages: termcolor, numpy, six, absl-py, wheel, gast, protobuf, grpcio, astor, html5lib, markdown, bleach, werkzeug, tensorboard, tensorflow
Running setup.py install for termcolor ... done
Running setup.py install for absl-py ... done
Running setup.py install for gast ... done
Running setup.py install for html5lib ... done
Successfully installed absl-py-0.1.10 astor-0.6.2 bleach-1.5.0 gast-0.2.0 grpcio-1.9.1 html5lib-0.9999999 markdown-2.6.11 numpy-1.14.1 protobuf-3.5.1 six-1.11.0 tensorboard-1.6.0 tensorflow-1.6.0rc1 termcolor-1.1.0 werkzeug-0.14.1 wheel-0.30.0
5、pyhton终端验证安装:
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> print(sess.run(hello))
b'Hello, TensorFlow!'
参考文章:《Windows下tensorflow安装 win64+Python3.5》