Take the 2-minute tour ×

I'd like to use wxPython on my Mac OS 10.7 (Lion) computer. (I'm a Tkinter refugee.) I upgraded from Python 2.7.1, then downloaded and installed wxPython2.8-osx-unicode- Here's what I get:

 >>> import wx
 Traceback (most recent call last):
     import wx
   File "/usr/local/lib/wxPython-unicode-", line 45, in <module>
     from wx._core import *
   File "/usr/local/lib/wxPython-unicode-", line 4, in <module>
     import _core_
 ImportError: dlopen(/usr/local/lib/wxPython-unicode-, 2): no suitable image found.  Did find:
    /usr/local/lib/wxPython-unicode- no matching architecture in universal wrapper

What is this telling me, and what do I do about it???

share|improve this question
add comment

5 Answers

Homebrew provides wxWidgets 2.9 in full 64bit glory including wxWidgets.

brew install wxmac

share|improve this answer
This helped solve my issue! David Matuszek please consider accepting this as the answer. –  fatuhoku May 17 '13 at 13:38
add comment

What you probably want is a cocoa API based wxPython, then you don't have to worry about architecture.

Here is a link to the download for wxPython 2.9: http://downloads.sourceforge.net/wxpython/wxPython2.9-osx-,

and here is the page that explains it: http://wxpython.org/download.php.

share|improve this answer
add comment

Make sure you are using the correct version of wxPython. Not just the right Python version, but the right bit version two: 32 vs. 64. This sounds a lot like this thread: https://groups.google.com/forum/?fromgroups#!topic/wxpython-users/NQEY2SUC058

share|improve this answer
add comment

Mike's link is a great link to the answer, but just for completeness...

wxPython uses wxMac, which uses Carbon, which is limited to just 32 bit executables. However Python2.7(64bit) comes with a python-32 command.

$ python-32
>> import wx
share|improve this answer
add comment

Use brew* to install wxmac using the following command.

brew install --python wxmac --devel

once you install the wxmac create a symbolic link between the installed wx to the python library.

sudo ln -s /usr/local/Cellar/wxmac/ /Library/Python/2.7/site-packages/wx

I Hope it will be helpful for future installers.

*if you do not have Brew installed prior, install it using the following command: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

share|improve this answer
add comment

Your Answer


