Warum enthält mein Python, der über Home Brew installiert wurde, nicht Tkinter
Ich habe meinen Python über Homebrew auf dem Mac installiert.
brew install python
und danach habe ich meine Python-Version als 2.7.11 überprüft, dann habe ich versucht durchzuführen
import Tkinter
Ich habe folgende Fehlermeldung:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python/2.7.11/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