当前位置:首页 > 操作系统 > MacOs

无法导入wxPython(Mac)

我以为我会从使用Tkinter转到wxPython,但遇到了一些麻烦.我所得到的是这样的:

<code>>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named wx
</code>

我已经安装了wxPython.当我运行卸载程序时,我清楚地看到安装了wxPython IS:

<code>  1.  wxPython3.0-osx-cocoa-py2.7                 3.0.0.0

Enter the number of the install to examine or 'Q' to quit: 
</code>

当我启动Python时,我看到我的版本应该与wxPython的版本匹配:

<code>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.
</code>

我使用的是OS X 10.7.5 32位.

任何帮助都是极好的!


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐