title: Unable to import Tensorflow "No module named copyreg"
body: <p>El Capitan OS here. I've been trying to find a workaround with import Tensorflow into my ipython notebook, but so far no luck.</p>
  
  <p>Like many people in the forums, I've also had issues with install tensorflow because of the six package. I was able to install after some fidgeting with brew</p>
  
  <pre><code>brew link gdbm
  brew install python
  rew linkapps python
  sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  </code></pre>
  
  <p>I got a message that tensorflow was installed correctly. Even when I did <code>sudo pip install tensorflow</code> I get the message:</p>
  
  <pre><code>Requirement already satisfied (use --upgrade to upgrade): tensorflow in /usr/local/lib/python2.7/site-packages
  Requirement already satisfied (use --upgrade to upgrade): six&gt;=1.10.0 in /Library/Python/2.7/site-packages (from tensorflow)
  Requirement already satisfied (use --upgrade to upgrade): numpy&gt;=1.9.2 in /usr/local/lib/python2.7/site-packages (from tensorflow)
  </code></pre>
  
  <p>However, when I'm on my ipython notebook and I did an <code>import tensorflow</code> I get the message: <code>ImportError: No module named tensorflow</code></p>
  
  <p>I've dug further and found this error on the import as well:</p>
  
  <pre><code>In [1]: import tensorflow
  ---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-1-a649b509054f&gt; in &lt;module&gt;()
  ----&gt; 1 import tensorflow
  
  /usr/local/lib/python2.7/site-packages/tensorflow/__init__.py in &lt;module&gt;()
        2 # module.
        3 # pylint: disable=wildcard-import
  ----&gt; 4 from tensorflow.python import *
  
  /usr/local/lib/python2.7/site-packages/tensorflow/python/__init__.py in &lt;module&gt;()
       11 
       12 import tensorflow.python.platform
  ---&gt; 13 from tensorflow.core.framework.graph_pb2 import *
       14 from tensorflow.core.framework.summary_pb2 import *
       15 from tensorflow.core.framework.config_pb2 import *
  
  /usr/local/lib/python2.7/site-packages/tensorflow/core/framework/graph_pb2.py in &lt;module&gt;()
        6 from google.protobuf import descriptor as _descriptor
        7 from google.protobuf import message as _message
  ----&gt; 8 from google.protobuf import reflection as _reflection
        9 from google.protobuf import symbol_database as _symbol_database
       10 from google.protobuf import descriptor_pb2
  
  /usr/local/lib/python2.7/site-packages/google/protobuf/reflection.py in &lt;module&gt;()
       56   from google.protobuf.pyext import cpp_message as message_impl
       57 else:
  ---&gt; 58   from google.protobuf.internal import python_message as message_impl
       59 
       60 # The type of all Message classes.
  
  /usr/local/lib/python2.7/site-packages/google/protobuf/internal/python_message.py in &lt;module&gt;()
       57 
       58 import six
  ---&gt; 59 import six.moves.copyreg as copyreg
       60 
       61 # We use "as" to avoid name collisions with variables.
  
  ImportError: No module named copyreg
  </code></pre>