I understand this may be an old question, but still I cannot find solution from off-the-shelf Q$A. Here is the problem:
I am following Udacity \"Mac
More than likely either Tensorflow is not installed in the right Python environment of Conda or not installed at all. Follow the below steps:
$ conda create -n tensorflow python=3.5
Once that is done, need to activate that as below:
$ source activate tensorflow
Then when you open IPython Notebook or Spyder, it will recognize the Tensorflow.
i have missed tensorflow install (3) number below the list.. now i have solved
for anaconda install
for enviroment install https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#anaconda-installation
for tensorflow install https://github.com/conda-forge/tensorflow-feedstock
This is likely due to an anemic environment variable, one of the library path class. I don't know how iPythonNotebook denotes the libraries it will search for files (say, $LD_LIBRARY_PATH), but I believe that you have to find it (a list of paths to libraries) and add the root directory of TensorFlow.
You should deactivate and re-activate the environment
source deactivate tensorflow
source activate tensorflow
Run python -m ipykernel install --user --name <Environment_Name>
. This should add your environment to the jupyter kernel list.
Change the kernel using Kernel->Change Kernel
option or New-><Environment_Name>
.
After I tried Anaconda-installation (I was using the other installation methods, which are all shown in the link below) https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#anaconda-installation It worked ...
Further, on terminal activate tensorflow
>>> source activate tensorflow
before open iPython Notebook
>>> ipython notebook
At last, I have to restart my macbook to make it work....