Linux, pop_os, vs code, python3
import tkinter as tk
win = tk.Tk()
win.title("Hello World")
win.mainloop()
python main.py
-> ModuleNotFoundError: No module named 'tkinter'
python3-tk
and python-tk
already installed with apt
python --version
(in vs code terminal) -> Python 3.9.9
pip3 install tk
(in vs code terminal) -> Requirement already satisfied: tk in /var/data/python/lib/python3.9/site-packages (0.1.0)
pip3 install tkinter
(in vs code terminal) -> ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter