pip3 install tk
sudo apt-get install python3-tk
# for pip and windows, in cmd, write:
pip install tk
pip install tk
#or
pip3 install tk
python3 -m pip install tk
no need to install it. It is usually preinstalled by default. Make sure you
write tkinter correctly (with capital letter T on versions less than python 3)
while importing