E
E
Evgeny Kolesov2018-02-15 13:20:15
Python
Evgeny Kolesov, 2018-02-15 13:20:15

Why won't the tkinter library open?

Hello. I apologize in advance if the question seems stupid. I had an idea to create the simplest calculator. To the question why? well it is necessary. That's not the point.
I installed tkinter via the console, I enter the command from tkinter import * to which it gives out - from: can't read /var/mail/tkinter
I watched video tutorials from people, as soon as you write a tag, tkinter already gives options for the desired tag from the library. What could be the problem? I did not find such a problem on the Internet.
PS I recently started studying python, I don’t know a lot of things, maybe they didn’t upload or didn’t do something. I will be grateful for adequate answers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai, 2018-12-22
@rosweb2018

1. instead of "from tkinter import *" - it's better to just import tkinter
2. At some point, the name of Tkinter changed to tkinter. (exact versions - look at the official website)
3. In a nutshell. If you have python 2 - then Tkinter, if python 3 - then tkinter.
4. Two versions of python can be installed in ubuntu at once, so control the version of python with which you run the script.
5. Also check the settings of your program for code editing, its settings may contain a python version that is not the one you are counting on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question