天天看点

win10安装TensorFlow2.0

一、安装Anaconda

可以百度搜索anaconda然后进官网下载安装,但此方法比较慢,建议从清华大学开源镜像站下载

地址:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

具体安装过程略

二、安装过程

安装说明:

平台:windows

版本:tensorflow2.0.0-alpha0(cpu版本)

安装方式:pip

具体过程:

方法一:打开Anaconda notebook

点击右上角的new->Terminal

win10安装TensorFlow2.0

然后在Terminal中输入:pip install tensorflow==2.0.0-alpha0 -i https://pypi.tuna.tsinghua.edu.cn/simple

然后回车运行

win10安装TensorFlow2.0

等待安装完成即可,成功画面如下

win10安装TensorFlow2.0

此时可以验证一下,打印TensorFlow版本,输入如下命令:

python

import tensorflow as tf

tf.__version__

运行效果如下,安装到此结束

win10安装TensorFlow2.0

gpu版本:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu