I'm on Linux Mint 18.3 Cinnamon 64bit and running into a weird problem when trying to install Tensorflow.
After installing it via native pip according to the official documentation, I validated its installation in my terminal and everything seems fine. I even tested a few lines of TF code in my terminal and everything operates well. However, I can't use TF in any of my Python IDEs, which are Spyder and IDLE. In both Spyder and IDLE, the console shows "ImportError: No module named 'tensorflow'" when I try to import TF.
To make sure that the Conda environment isn't the reason why TF doesn't work on Spyder, I even installed TF with Anaconda according to official documentation. I also validated TF's installation within the Anaconda environment in my terminal. (See photo link for my validation.https://i.stack.imgur.com/bK4gE.png) But I still get the same error message when I try to import TF in Spyder. I reinstalled and nothing changed.
In summary, my TF works fine in my terminal but cannot be imported when I use Python IDEs. Any insight would be appreciated, thanks!