我以爲我會從使用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