keras-深度学习01-安装

1.E:\ProgramData\Scripts>pip install -i https://pypi.douban.com/simple keras
keras-深度学习01-安装
使用pip 安装。
2. 此时,导入,你会发现无法使用,需要安装TensorFlow 2.2以上版本。
keras-深度学习01-安装
3.一键安装(CPU版): pip install --upgrade --ignore-installed tensorflow
(GPU版) pip install --upgrade --ignore-installed tensorflow-gpu
我这里采用的是CPU版本,安装的是2.2版本。
4.E:\ProgramData\Scripts>pip install -i https://pypi.douban.com/simple tensorflow==2.2
keras-深度学习01-安装
5.这次再使用keras看一下。
运行无误。