STEP 1 pip uninstall keras STEP 2 pip install keras==2.2.4 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com