title: NumPy: Import Error, Image Not Found OSX
body: <p>Basically just started getting into Python and making the gradual switchover from Matlab. </p>
  
  <p>I'm having trouble importing packages for use in my Python scripts. </p>
  
  <p>I downloaded Anaconda (which, to my knowledge, installs Python) and proceeded to download "NumPy" through the command line in terminal.</p>
  
  <p>I am using IDLE currently as my Python text editor, and all is well, if I save my .py file and run it through Terminal as, for example, python test.py. It finds the NumPy library and executes fine:</p>
  
  <pre><code>#!/usr/bin/env python
  import numpy as np
  
  array=np.zeros([5,5])
  print(array)
  
  [[ 0.  0.  0.  0.  0.]
   [ 0.  0.  0.  0.  0.]
   [ 0.  0.  0.  0.  0.]
   [ 0.  0.  0.  0.  0.]
   [ 0.  0.  0.  0.  0.]]
  </code></pre>
  
  <p>However, trying to import numpy through terminal after activating the Python shell via Python3.5, the following happens.</p>
  
  <pre><code>&gt;&gt;&gt; import numpy as np
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/__init__.py", line 184, in &lt;module&gt;
      from . import add_newdocs
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/add_newdocs.py", line 13, in &lt;module&gt;
      from numpy.lib import add_newdoc
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/lib/__init__.py", line 8, in &lt;module&gt;
      from .type_check import *
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/lib/type_check.py", line 11, in &lt;module&gt;
  import numpy.core.numeric as _nx
    File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/__init__.py", line 14, in &lt;module&gt;
      from . import multiarray
      ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/multiarray.cpython-35m-darwin.so, 10): Library not loaded: @loader_path/../../../../libmkl_intel_lp64.dylib
    Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/multiarray.cpython-35m-darwin.so
    Reason: image not found
  </code></pre>
  
  <p>The same message comes up if I try to run the script through the Python shell in IDLE. I'm thinking it's looking for the library NumPy in the wrong place, but I'm not sure how to correct the issue.</p>