Solution :
I was facing the same issue on the Windows 10 with Python 3.6.X version then after checking properly I found that I had Python-32 bit installation on the 64 bit machine. As TensorFlow is only compatible with the 64bit installation of python and not with 32 bit of Python so I followed below procedure to fix it
I had download 64 bit installer manually to install the Python 64 bit. And after that added below paths to my PATH
environment.
C:\Users\AppData\Local\Programs\Python\Python36
C:\Users\AppData\Local\Programs\Python\Python36\Scripts
Then I ran the gpupdate /Force
on my command prompt. If the python command is not working for the 64 bit then restart the machine.
Then you should run python on the command prompt. And it must show 64 bit
C:\Users\YOURNAME>python
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Then I ran below command to install the tensorflow CPU version.
pip3 install --upgrade tensorflow