I am having trouble with the module on python. Here is my path variable,
/opt/local/bin /opt/local/sbin /Developer/usr/bin /usr/local/git/bin /usr/X11/bin /Users/oskarniburski/.rvm/bin /usr/X11R6/bin /Library/Frameworks/Python.framework/Versions/3.3/bin /Library/Frameworks/Python.framework/Versions/2.7/bin /Library/Frameworks/Python.framework/Versions/Current/bin /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin /usr/X11/bin /Users/oskarniburski/.rvm/bin
and as seen, it goes through 3.3 and 2.7 therefore should it not find the numpy module in python? I cannot do the euler intergration without the numpy module, so I am curious as to what is the solution. I tried reinstall numpy with pip install numpy , but it did not solve my problem (as numpy module is already in python2.7 framework.) Therefore I am not sure why it is unable to locate numpy module. Any help?
The error I get originally was
ImportError: No module named numpy
Now, after some changes, I get the error:
$ python eulerintegration.py Traceback (most recent call last): File "eulerintegration.py", line 1, in <module> import numpy as np File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/__init__.py", line 137, in <module> import add_newdocs File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/add_newdocs.py", line 9, in <module> from numpy.lib import add_newdoc File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/lib/__init__.py", line 4, in <module> from type_check import * File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/lib/type_check.py", line 8, in <module> import numpy.core.numeric as _nx File "/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/core/__init__.py", line 5, in <module> import multiarray ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy/core/multiarray.so: mach-o, but wrong architecture