From my understanding, tkinter is built in to python. However, when i tried to run the following code
from turtle import *
I get this error
Traceback (most recent call last): File "myturtle.py", line 1, in from turtle import * File "/usr/lib/python3.6/turtle.py", line 107, in import tkinter as TK ModuleNotFoundError: No module named 'tkinter'
I solved this by doing
sudo apt install python3-tk
But why did I have to do this? I thought tkinter would come with my python3 installation. I installed it with the apt command.
I'm also new to package management and trying to learn. I am using Ubuntu which I think uses the Debian package manager. Does it have to do with that?