> ## Content Index
> Fetch the complete content index at: https://helpmonks.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Python wxPython install on MacOS X 10.8.x
- URL: https://helpmonks.com/blog/python-wxpython-install-on-macos-x-10-8-x/
- Published: 2013-03-06T00:00:00.000Z
- Updated: 2026-04-06T20:07:24.000Z
- Description: wxPython is a GUI library kit import wx Traceback (most recent call la
- Author: Nitai
- Tags: email marketing

[wxPython is a GUI library kit](http://www.wxpython.org/what.php?ref=helpmonks.com) for developing desktop application with Python. Since it is cross-platform you can actually run your code on MacOS X, Windows and Linux.

Now, while installing wxPython on my development environment (MacBook Air 13″, MacOS X 10.8.x) and the standard installer from the [wxPython website](http://www.wxpython.org/?ref=helpmonks.com) I’ve hit an error already by simply importing the wx library. The error was:

\[code\]import wx  
Traceback (most recent call last):  
File "<stdin>", line 1, in <module>  
File "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/\_\_init\_\_.py", line 45, in <module>  
from wx.\_core import \*\[/code\]

Now, whatever I tried, did not work, until I remembered that I install all my apps with “brew”. Ok, so off I went to find the correct installer arguments for wxPython. To my surprise it wasn’t really public and so here is the correct installer argument for getting wxPython up and running with Brew:

\[code\]brew install –python wxmac –devel\[/code\]

This will install and link everything perfectly and now wxPython can be imported successfully. Please note; I also use the Python version from Brew, so your experience might be different if you want to use the one coming with MacOS X.