Answer the question
In order to leave comments, you need to log in
How to import tkinter python module?
I ran a program with an imported tkinter library but got an error:
from tkinter import *
ModuleNotFoundError: No module named 'tkinter'
I have python 3.6 and latest version of pip . I already have the tkinter module installed:
pip install tk-tools
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: tk-tools in /home/link/.local/lib/python3.6/site-packages ( 0.14.0)
Answer the question
In order to leave comments, you need to log in
If you have an OS of the Linux family (As I look at the home directory), then below.
If Windows, then it is desirable to install Python above already.
Try using commands:
sudo apt-get install python3-tk
sudo apt-get install python3.6-tk
sudo dnf install python3-tkinter
sudo apt-get install python3.7-tk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question