1、tensorflow学习(一定要注意版本对应问题)
(1)tensorflow、keras和python对应版本安装
(2)tensorflowGPU与cuda、cudnn对应版本安装
(3)cuda、cudnn安装流程
(4)Tensorflow和Keras安装流程
这里安装python=3.6,Tensorflow=2.0,Keras=2.3.1
-
在Anaconda Prompt中输入命令,创建conda环境(anaconda的安装教程)
conda create -n tensorflow python=3.6
-
激活环境
activate tensorflow
-
安装tensorflow
pip install tensorflow==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
安装keras
pip install keras==2.3.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
结果:
nimg.cn/c0507cad13894a1095b9e8005842f3b0.png)