error: Failed to load the native TensorFlow runtime
First uninstall this
pip uninstall tensorflow
Now for re installation Download this tensorflow wheel file
Install this using(in same Directory)
pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl
My code worked perfectly after executing this line:
pip install tensorflow --upgrade --force-reinstall