title: Why does the 'tensorflow' module import fail in Spyder and not in Jupyter Notebook and not in Python prompt?
body: <p>I have not used Linux/Unix for more a decade. Why does the 'tensorflow' module import fail in Spyder and not in Jupyter Notebook and not in Python prompt?</p>
  
  <p><strong>SCENARIO:</strong></p>
  
  <ul>
  <li>[terminal] spyder</li>
  <li>[spyder][IPython console] Type 'import tensorflow as tf' in the IPython console</li>
  </ul>
  
  <p><strong>CURRENT RESULT:</strong></p>
  
  <ul>
  <li>[spyder][IPython console] Message error: 'ImportError: No module named 'tensorflow''</li>
  </ul>
  
  <p><strong>ADDITIONAL INFORMATION:</strong></p>
  
  <ul>
  <li>OS: Ubuntu 14.04 (VMWare)</li>
  <li>Python: Python 3.5.2 :: Anaconda custom (64-bit)</li>
  <li>Install of TensorFlow:
  
  <ul>
  <li>[terminal] sudo -s</li>
  <li>[terminal] conda create --name=IntroToTensorFlow python=3 anaconda</li>
  <li>[terminal] source activate IntroToTensorFlow</li>
  <li>[terminal] conda install -c conda-forge tensorflow</li>
  </ul></li>
  <li>PATH = $PATH:/home/mo/anaconda3/envs/IntroToTensorFlow/bin</li>
  </ul>
  
  <p><strong>COMMENTS:</strong></p>
  
  <ul>
  <li>When I replay the following scenario, it works fine:
  
  <ul>
  <li>[terminal] sudo -s</li>
  <li>[terminal] source activate IntroToTensorFlow</li>
  <li>[terminal] python</li>
  <li>[python] import tensorflow as tf</li>
  </ul></li>
  <li>When I replay the tensorflow import in Jupyter Notebook, it works fine too</li>
  </ul>
  
  <p><strong>WHAT I HAVE DONE SO FAR:</strong></p>
  
  <ul>
  <li>I Googled it but I did not find a suitable anwser</li>
  <li>I searched in the Stack Overflow questions</li>
  </ul>