When you install Keras,import Keras with Pip after the normal installation completes Python 2.7, you will be prompted not to
TensorFlow initially does not support Windows environments and is now compatible with Windows, but requires Python 3. The installation steps are as follows:
Install the Anaconda link first: https://www.anaconda.com/download/download the Windows 2.7 version and install it directly after the download is complete.
I want to be able to run Python 2.7 locally, and also use Python 3.5.2 to TensorFlow. It turns out that people from continuum (the creator of the Anaconda package) are already covered! With Anaconda's Conda command, you can set up a virtual environment for a separate Python version, perfect! Continue to download Anaconda from their website (note: Your download of Anaconda Python version is not important!) I have personally downloaded the Python version 2.7, which is the daily version I will use)
Your anaconda version is already installed? Okay, now. Open a command prompt and run this command (make sure that you run the command prompt as an administrator, or you may get permission denied errors):
conda create-n python3 python=3.5.2 Anaconda
Now all set, then enter activate python3
  enter "Python–version" to view the version and you will see your command before it is (Python3). Congratulations, you are now running in a Python 3.5.2 environment. (enter "Deactivate" to close the virtual environment session, you will get the Python version installed in the original Anaconda package, and in my case the 2.7.13 (if you do not get these results, then regret to tell you that the installation failed)).
7. After entering the Python 3 environment, you can install TensorFlow via PIP.
pip install --upgrade tensorflow
Installing TensorFlow
Windows installation Keras Framework