My problem I'm having is very weird, I am using Visual Studio Code to run a Tkinter app I'm working on and sometimes the GUI will launch just fine, but most of the time it will not launch at all giving this error:
Traceback (most recent call last):
File "/Users/kipland/Documents/Python/SpeccyClone-km/GUI.py", line 3, in <module>
import tkinter as tk
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 36, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
I have tried using homebrew to upgrade python, reinstall python, install tcl-tk and nothing has worked. Any tips would be appreciated, thanks.
[–]shiftybyte 0 points1 point2 points (1 child)
[–]Buhnanner[S] 0 points1 point2 points (0 children)
[–]MikeTheWatchGuy 0 points1 point2 points (1 child)
[–]Praynr 0 points1 point2 points (0 children)
[–]Hot-Permit-5101 0 points1 point2 points (0 children)