title: Got an error when trying to import Tensorflow in Anaconda
body: <p>I installed tensorflow with pip3, then validated it with</p>
  
  <pre><code># Python
  import tensorflow as tf
  hello = tf.constant('Hello, TensorFlow!')
  sess = tf.Session()
  print(sess.run(hello))
  </code></pre>
  
  <p>And all works fine in terminal. However, when i try to import tensorflow in Anaconda it throws up an error:</p>
  
  <pre><code>import tensorflow as tf
  Traceback (most recent call last):
  
    File "&lt;ipython-input-4-64156d691fe5&gt;", line 1, in &lt;module&gt;
      import tensorflow as tf
  
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in &lt;module&gt;
      from tensorflow.python import *
  
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 51, in &lt;module&gt;
      from tensorflow.python import pywrap_tensorflow
  
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in &lt;module&gt;
      raise ImportError(msg)
  
  ImportError: Traceback (most recent call last):
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in &lt;module&gt;
      from tensorflow.python.pywrap_tensorflow_internal import *
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in &lt;module&gt;
      _pywrap_tensorflow_internal = swig_import_helper()
    File "/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
      _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
    File "/Users/Ivan/anaconda3/lib/python3.6/imp.py", line 243, in load_module
      return load_dynamic(name, filename, file)
    File "/Users/Ivan/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
      return _load(spec)
  ImportError: dlopen(/Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Library not loaded: @rpath/libcublas.8.0.dylib
    Referenced from: /Users/Ivan/anaconda3/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
    Reason: image not found
  
  
  Failed to load the native TensorFlow runtime.
  </code></pre>
  
  <p>I tried some things which I found on the internet, and this is what I get:</p>
  
  <ol>
  <li><p>When I'm trying commands like</p>
  
  <pre><code>conda update --all
  </code></pre>
  
  <p>I get "conda: command not found". In the terminal and in Anaconda prompt too.
  But if in the terminal I enter</p>
  
  <pre><code>zsh
  conda info
  </code></pre>
  
  <p>It works</p></li>
  <li><p>If I change "Applications on..." in Anaconda from root to tensorflow, it doesn't help.</p>
  
  <p>Screenshot that shows "Applications on tensorflow":</p>
  
  <p><img src="https://i.stack.imgur.com/nCjVJ.png" alt=""></p></li>
  <li><p>I think I wrongly downloaded and installed the GPU version of tensorflow, but I uninstalled tensorflow and reinstalled CPU version.</p></li>
  </ol>
  
  <p>I'm using OS X Sierra and Anaconda 4.4.10. How should I approach this problem? I have only basic understanding of terminal.</p>