I installed TensorFlow on my Windows Python 3.5 Anaconda environment The validation was successful (with a warning)
(tensorflow) C:\\>python
I think your tensorflow is not installed for local environment.The best way of installing tensorflow is to create virtualenv as describe in the tensorflow installation guide Tensorflow Installation .After installing you can activate the invironment and can run anypython script under that environment.