一、下载ANACONDA
经过实验,操作系统一定要是64位的才可以,先下载ANACONDA.
https://www.continuum.io/downloads#windows
注意一定要下载“
Anaconda3-4.2.0-Windows-x86_64”,因为需要安装自带的python必须是3.5,才可以调用TensorFlow
但是anaconda4.3自带是python3.6 ,无法调用TensorFlow
二、安装Anaconda3-4.2.0-Windows-x86_64
三、查看python是否安装成功
cmd
python
四、pip升级
1、pip -V 查看pip当前的版本
2、python -m pip install -U pip
3、pip -V
C:\Users\Administrator>python -m pip install -U pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Successfully installed pip-9.0.1
五、安装tensorflow
1、以管理员身份运行cmd
切换到 D:\Program Files\Anaconda3\Scripts>
2、执行
pip install tensorflow
3、安装成功后,执行如下代码,测试tensoflow是否安装成功
python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
0002-tensorflow安装--Anaconda
猜你喜欢
转载自youcou12.iteye.com/blog/2370505
今日推荐
周排行