Error "mach-o, but wrong architecture" after installing anaconda on mac
<p>I am getting an architecture error while importing any package, i understand my Python might not be compatible, can't understand it.
Current Python Version - 2.7.10</p>

<blockquote>
  <p>`MyMachine:desktop *********$ python pythonmath.py
  Traceback (most recent call last):
    File "pythonmath.py", line 1, in 
      import math
  ImportError: dlopen(/Users/*********/anaconda/lib/python2.7/lib-dynload/math.so, 2): no suitable image found.  Did find:
      /Users/**********/anaconda/lib/python2.7/lib-dynload/math.so: mach-o, but wrong architecture
  MyMachine:desktop ***********$ python pythonmath.py
  Traceback (most recent call last):
    File "pythonmath.py", line 1, in 
      import math
  ImportError: dlopen(/Users/anaconda/lib/python2.7/lib-dynload/math.so, 2): no suitable image found.  Did find:
      /Users/***********/anaconda/lib/python2.7/lib-dynload/math.so: mach-o, but wrong architecture</p>
</blockquote>

<p>you are mixing 32bit and 64bit versions of python.
probably you installed 64bit python version on a 32bit computer.
go on and uninstall python and reinstall it with the right configuration.</p>

python osx python-2.7