title: Tensorflow import error: No module named 'tensorflow'
body: <p>I installed TensorFlow on my Windows Python 3.5 Anaconda environment
  The validation was successful (with a warning)</p>
  
  <pre><code>(tensorflow) C:\&gt;python
  </code></pre>
  
  <p>Python 3.5.3 |Intel Corporation| (default, Apr 27 2017, 17:03:30) [MSC v.1900 64 bit (AMD64)] on win32</p>
  
  <p>Type "help", "copyright", "credits" or "license" for more information.
  Intel(R) Distribution for Python is brought to you by Intel Corporation.
  Please check out: <a href="https://software.intel.com/en-us/python-distribution" rel="noreferrer">https://software.intel.com/en-us/python-distribution</a></p>
  
  <pre><code>&gt;&gt;&gt; import tensorflow as tf
  &gt;&gt;&gt; hello = tf.constant('Hello, TensorFlow!')
  &gt;&gt;&gt; sess = tf.Session()
  </code></pre>
  
  <p>2017-10-04 11:06:13.569696: W C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.</p>
  
  <pre><code>&gt;&gt;&gt; print(sess.run(hello))
  </code></pre>
  
  <p>b'Hello, TensorFlow!'</p>
  
  <p>However, when I attempt to import it into my python code</p>
  
  <pre><code>from __future__ import print_function, division
  import numpy as np
  import os
  import matplotlib
  import tensorflow as tf
  </code></pre>
  
  <p>I get this error</p>
  
  <blockquote>
    <p><strong>ImportError: No module named 'tensorflow'</strong></p>
  </blockquote>
  
  <p>This is the location of the tensorflow package on my C drive</p>
  
  <pre><code>C:\Users\myname\Anaconda2\envs\tensorflow\Lib\site-packages\tensorflow
  </code></pre>
  
  <p>When I go to Anaconda Navigator, it seems I have to choose either root, Python35, or Tensorflow. It looks like the Tensorflow environment includes Python35.</p>
  
  <p>Anaconda Navigator launcher had to be reinstalled recently, possibly due to the Tensorflow installation. Maybe if there were another way to set the environment to Tensorflow within Anaconda /Spyder IDE other than the Navigator it might help</p>
  
  <p>Method of installing tensorflow</p>
  
  <pre><code>conda create --name tensorflow python=3.5; 
  pip install --ignore-installed --upgrade tensorflow 
  </code></pre>
  
  <p>I did try:
  uninstalling and reinstalling protobuf, as suggesed by some blogs</p>
  
  <p>I see another SO user asked <a href="https://stackoverflow.com/questions/42619665/why-spyder-cant-import-tensorflow">the same question</a> in March, received no reply</p>