I am trying to install tensorflow on mac and it\'s giving me this error.
ImportError: No module named tensorflow
Here is what I have done in the terminal
I use Anaconda Navigator which includes Tensorflow. I use Spyder, it's a IDE of Anaconda Navigator similar to Matlab with variable explorer, very useful.
You have to go to the page https://www.anaconda.com/download/#macos
and download and install it. It's open source. Then open Spyder and call tensorflow lib. It's the easiest mode to run tensorflow and virtualenvs.
Try installing through Anaconda...
Enter this in the Terminal
export PATH=~/anaconda2/bin:$PATH OR export PATH=~/anaconda3/bin:$PATH
And then
conda install -c https://conda.anaconda.org/jjhelmus tensorflow
This worked for me, after trying several other approaches.