一:基础环境准备
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