title: Python import works in interpreter, doesn't work in script Numpy/Matplotlib
body: <p>I'm on OSX Snow Leopard and I run 2.7 in my scripts and the interpreter seems to be running 2.6</p>
  
  <p>Before I was able to import numpy but then I would get an error when trying to import matplotlib so I went looking for a solution and updated my PYTHONPATH variable, but I think I did it incorrectly and have now simply screwed everything up.</p>
  
  <p>This is what I get when I try and import numpy in my script:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):
     File "./hh_main.py", line 5, in 
       import numpy
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/<strong>init</strong>.py", line 137, in 
       import add_newdocs
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/add_newdocs.py", line 9, in 
       from numpy.lib import add_newdoc
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/lib/<strong>init</strong>.py", line 4, in 
       from type_check import *
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/lib/type_check.py", line 8, in 
       import numpy.core.numeric as _nx
     File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/core/<strong>init</strong>.py", line 5, in 
       import multiarray
    ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/core/multiarray.so, 2): Symbol not found: _PyCapsule_Import
     Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/core/multiarray.so
     Expected in: flat namespace
    in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site->packages/numpy/core/multiarray.so</p>
  </blockquote>
  
  <p>Furthermore this is what I get from sys.path in the interpreter: </p>
  
  <blockquote>
    <p>['', '/Users/joshuaschneier/Documents/python_files', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload']</p>
  </blockquote>
  
  <p>And this is my PYTHONPATH which I guess I updated wrong:</p>
  
  <blockquote>
    <p>:/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/</p>
  </blockquote>
  
  <p>Thanks for any help.</p>