Error running basic tensorflow example

From the path in your stack trace (/git/tensorflow/tensorflow/…), it looks like your Python path may be loading the tensorflow libraries from the source directory, rather than the version that you have installed. As a result, it is unable to find the (compiled) pywrap_tensorflow library, which is installed in a different directory.

A common solution is to cd out of the /git/tensorflow directory before starting python or ipython.


The command below helped me.

 pip install tensorflow --upgrade --force-reinstall