Hello team,
So I installed tkinter using
And tried to import it in different ways
Nothing seems to work, could you please help?
[SOLVED]
Run command
So I installed tkinter using
pip3 install tkBut when I try to run the following code
import tkinter as tk root = tk.Tk() root.mainloop()I get the following error:
Traceback (most recent call last):
File "iwannadie.py", line 1, in <module>
import tkinter as tk
ModuleNotFoundError: No module named 'tkinter'This is driving me crazy, because I have the tk lib installedpip3 list | grep tk tk 0.1.0
And tried to import it in different ways
import tkinter as tk from tkinter import * import tk
Nothing seems to work, could you please help?
[SOLVED]
Run command
sudo apt-get install python3-tk
