Windows安装TensorFlow 方法

Google 人工智能学习系统,折腾了好久才安装上,我只能说,没有梯子太累

最后用anaconda 安装的,系统win7 64位

---------------------------------------------------------------------------------------------------

安装:

1. 下载Anaconda 地址: https://www.continuum.io/downloads  下载64位的

https://repo.continuum.io/archive/Anaconda3-4.3.1-Windows-x86_64.exe

2.创建tensorflow空间 (打开 Anaconda Prompt 控制台)

conda create -n tensorflow python=3.5

3.修改python版本

conda install python=3.5

4.安装tensorflow

conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge tensorflow

这样差不多就安装好了

---------------------------------------------------------------------------------------------------

测试:

1.激活

activate tensorflow

2.打开python

python

>>>import tensorflow as tf
>>>sess = tf.Session()
>>>a = tf.constant(10)
>>>b = tf.constant(22)
>>>print(sess.run(a + b))
32

3.关闭python

exit()

4.关闭tensorflow

deactivate tensorflow



参考资料:

http://blog.csdn.net/include1224/article/details/53452824

http://blog.csdn.net/jinlong_xu/article/details/53413749

http://blog.csdn.net/mtj66/article/details/60466931(最后用这个方法安装的)

conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge tensorflow
conda install --channel https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge tensorflow
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值