F
F
Ffff Gggg2021-08-07 23:06:56
Python
Ffff Gggg, 2021-08-07 23:06:56

Why can't python find tkinter?

I just can’t get tkinter, I need it to implement open file dialog in eel, but python doesn’t see it in any way.
I tried to install with the command:

sudo apt install python3-tk

tkinter import: Error: Python version: 3.7.3 pip3 version: 18.1
from tkinter import *
ModuleNotFoundError: No module named 'tkinter'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Ffff Gggg, 2021-08-08
@MnNnnM

So I was able to successfully install tkinter. If anyone has the same problem:

  1. Then we go to the site, the link to which Egor left, and follow the instructions
  2. Downloading python sources
  3. Use this link
  4. Enjoy life, tkinter is wound up

E
Egor Zhuravlev, 2021-08-08
@ShePPy243

From the commands in the terminal, I can assume that you have Linux?
For Ubuntu/Debian try: sudo apt-get install python3-tk
Otherwise read this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question