我以为我会从使用Tkinter转移到wxPython,但我遇到了一些麻烦。我得到的是这样的:无法导入wxPython(Mac)
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named wx
我已经安装了wxPython。当我运行卸载我清楚地看到,已安装的wxPython:
1. wxPython3.0-osx-cocoa-py2.7 3.0.0.0
Enter the number of the install to examine or 'Q' to quit:
当我开始Python中我看到,我的版本应该匹配的wxPython的版本:在OS X 10.7
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
我.5 32位。
任何帮助将会很棒! :)
可能重复(http://stackoverflow.com/questions/4798759/cant-import-wxpython-on-mac-os- x) – hivert
使用该帖子中给出的命令运行python并不能解决我的问题。 – Halvurd
由于苹果的预装python,Mac上的wxpython有点麻烦。你确定你正在运行你安装了wx的python实例吗? – GreenAsJade