1、首先打开终端,在命令行下输入 brew install wxpython
有时候界面提示更新xcode那就必须得更新xcode了。


2、过一会就会提示你wxpython已经装好了。

3、打开python 输入 import site; site.getsitepackages()
得到python 库的路径/Library/Python/2.7/site-packages

4、然后跳转到库的路径下 cd /Library/Python/2.7/site-packages
做一个软连接,就相当于快捷方式,将wxpython放到python可以找到的路径下面
ln -s /usr/local/Cellar/wxpython/3.0.2.0/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx wx
不同的机器可能会有所不同