我试图在MAC OSX el capitan版本10.11中使用Python2.7导入模块Tkinter,但是我有以下错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
我想获得这个问题的解决方案,因为似乎是一个安装问题,网页ActiveTCL似乎被打破了