annaconda安装tensorflow

一:基础环境准备

1:以管理员身份运行annaconda prompt
在这里插入图片描述
2:查看当前python环境

python --version

3:建立名为tensorflow的conda计算环境

conda create -n tensorflow python=3.8

4:安装过程遇到y/n,选择y即可

5:安装完成:
在这里插入图片描述6:输入代码激活:

activate tensorflow

在这里插入图片描述
7:输入命令,查看python工作环境

python --version

在这里插入图片描述8:检测tensflow的环境添加到了Anaconda里面

conda info --envs

在这里插入图片描述
9:退出tensorflow的环境

conda deactivate

10:切换到tensorflow环境

conda activate tensorflow

二:正式安装tensorflow

1:输入命令安装

pip install tensorflow

在这里插入图片描述
安装完成:
在这里插入图片描述
测试:
在Anaconda Prompt中启动tensorflow环境,并进入python环境
在这里插入图片描述
输入测试代码:
在这里插入图片描述
安装keras:

在这里插入图片描述
TensorFlow版本网址:
https://tensorflow.google.cn/install/source#gpu

参考博客:
https://blog.csdn.net/qq_41831288/article/details/89044771
https://blog.csdn.net/hitzijiyingcai/article/details/83342905
参考博客:
https://blog.csdn.net/Leng_Cheng/article/details/113095585
参考 网址:
https://www.jianshu.com/p/4222c60182a5

  • 1
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值