Try the following:
Go to Files -> Settings -> Project:projectname -> Project Interpreter
Sometimes, it's possible, that there is a different interpreter chosen for your project than the one you installed TensorFlow in.
If you are using Linux you can probably check with "which pip" the path to your python distribution in which you installed TensorFlow.
Hope this helps!