先安装TensorFlow,再安装keras
安装tensorflow(gpu):
pip install tensorflow-gpu==1.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
如果安装tensorflow(cpu):
pip install tensorflow==1.4.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
然后再安装keras:
pip install keras