在anaconda prompt中输入
pip install tensorflow
pip install keras
安装完成后
tensorflow跑程序的时候用到了keras,报错
ImportError: No module named 'keras'
查看安装版本是否一致:https://docs.floydhub.com/guides/environments/
解决:
降低版本:下载的keras默认最新版,需要降到2.1.1
pip install keras==2.1.1
如果遇到版本低需要升级,则
pip install --upgrade keras==2.1.1
错误:
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
解决办法:https://blog.csdn.net/qq_27276951/article/details/85942108