tensorflow on win7 / win10 64

主要步骤:

0,安装 Anaconda3;

1,  protobuf 3.1.0
pip install protobuf-3.1.0-py2.py3-none-any.whl  吧这个文件下载到当前活动路径中。
 2.   numpy
[Anaconda3] C:\Users\syh\Desktop>pip install numpy-1.11.2+mkl-cp35-cp35m-win_amd64.whl
 3.  setuptools-29.0.1-py2.py3-none-any.whl
[Anaconda3] C:\Users\syh\Desktop>pip install setuptools-29.0.1-py2.py3-none-any.whl
 4. tf
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl

5. demo:
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 29 22:37:04 2016


@author: syh
"""


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))

其他:

Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

猜你喜欢

转载自blog.csdn.net/hua_007/article/details/53404147