您好,在 Mac OSX 5 上使用 python3 时出现以下错误:
Traceback (most recent call last):
File "app.py", line 107, in <module>
sv1 = ttk.Scrollbar(root, orient=VERTICAL, command=vScroll)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/tkinter/ttk.py", line 1138, in __init__
Widget.__init__(self, master, "ttk::scrollbar", kw)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/tkinter/ttk.py", line 559, in __init__
_load_tile(master)
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/tkinter/ttk.py", line 47, in _load_tile
master.tk.eval('package require tile') # TclError may be raised here
_tkinter.TclError: couldn't load file "/Library/Tcl/tile0.6/libtile0.6.dylib": dlopen(/Library/Tcl/tile0.6/libtile0.6.dylib, 10): no suitable image found. Did find:
/Library/Tcl/tile0.6/libtile0.6.dylib: mach-o, but wrong architecture
然后我跑:lipo -info /Library/Tcl/tile0.6/libtile0.6.dylib
并得到:Non-fat file: /Library/Tcl/tile0.6/libtile0.6.dylib is architecture: ppc
。
我有一个英特尔 mac。我该如何解决这个问题?