tensorflow2.0快速安装教程

tensorflow2.0快速安装教程

tensorflow融合了keras使用更方便了。直接上干货。
1、安装Anaconda3-2019.10-windows-x86_64(在清华园下载,https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.10-Windows-x86_64.exe)
2、用管理员身份打开cmd命令行窗口(这个很重要)

(base)c:\users\Administrator>conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
(base)c:\users\Administrator>conda create -n py35 python=3.5 
(base)c:\users\Administrator>conda activate py35
(py35)c:\users\Administrator>python -m pip install --upgrade pip
(py35)c:\users\Administrator>pip install numpy==1.13.3
(py35)c:\users\Administrator>pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.0.0

3、安装成功

(base) C:\Users\Administrator>python
Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Ana
conda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.0.0'
>>> tf.keras.__version__
'2.2.4-tf'
>>>

效果,见上图。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值