1、首先打开终端,在命令行下输入 brew install wxpython有时候界面提示更新xcode那就必须得更新xcode了。
2、过一会就会提示你wxpython已经装好了。
3、打开python 输入 import s坡纠课柩ite; site.getsitepackages()得到python 库的路径/Library/Python/2.7/site-packages
4、然后跳转到库的路径下 cd /Library/Python/2.7/site-packages做一个软连接,就相当于快捷方式,将w旌忭檀挢xpython放到python可以找到的路径下面ln -s /usr/local/Cellar/wxpython/3.0.2.0/lib/python2.7/site-packages/wx-3.0-osx_cocoa/wx wx不同的机器可能会有所不同