Tkinter does not work mac osx el capitan

I tried to import the Tkinter module using MAC OSX el capitan version 10.11 using Python2.7, but I have the following error:

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 

I would like to get a solution to this problem, because there seems to be a problem with the installation, and the ActiveTCL webpage seems to be broken.

+1
source share

All Articles