注意事项:
1.下载安装,双选勾勾
2.安装python3.5的版本
conda create -n tensorflow python=3.5
3.激活环境activate tensorflow
4.安装tensorflow 的模块
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
5.安装jupyter和ipython
conda install jupyter
conda install ipython
anaconda 软件包云盘链接 https://pan.baidu.com/s/1JkztH8KMto0rrZ-3c4Qmbg
pip install --ignore-installed --upgrade tensorflow
打开
conda create -n tensorflow python=3.5
一定要装3.5
激活 activate tensorflow
pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
安装jupyter:conda install jupyter
打开anaconda
创建文件
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!') #初始化一个TensorFlow的常量
sess = tf.Session() #启动一个会话
print(sess.run(hello))