QuickTip: How Do I Install pip on macOS or OS X? Ahmad Awais Even if you are not into Python there comes a time when you end up with the need of having to.
Active3 years, 3 months ago
![Python Python](/uploads/1/2/5/7/125737977/248057672.jpg)
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-2.8.12.1-universal-py2.7.dmg. Here's what I get:
What is this telling me, and what do I do about it???
senderle100k2525 gold badges172172 silver badges202202 bronze badges
David MatuszekDavid Matuszek64811 gold badge1111 silver badges3030 bronze badges
6 Answers
Homebrew provides wxWidgets 2.9 in full 64bit glory including wxWidgets.
brew install wxmac
Samuel JohnSamuel John
I suggest:
since wxpython installs wxmac, no need to install it seperately:
SubspacianSubspacian
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-2.9.4.0-cocoa-py2.7.dmg,
and here is the page that explains it: http://wxpython.org/download.php.
x - yx - y
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/2.9.4.0/lib/python2.7/site-packages/wx /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)'
rajmohanloganathanrajmohanloganathan
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
Mike DriscollMike Driscoll29.5k44 gold badges3131 silver badges7777 bronze badges
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.
Jim CarrollJim Carroll