How to determine which version of python3 tkinter is installed on my Linux machine?

Hi, I tried the Internet to answer the question of how to do this, but there was no direct answer. Does anyone know how I can find the tkinter version number?

+4
source share
2 answers

In Python 3, it is tkintersmall tand you need to import it. Thus:

>>> import tkinter
>>> tkinter.TkVersion
8.6

If you did not import it, you will receive an error message.

+7
source

Run Tkinter.TclVersion or Tkinter.TkVersion, and if both of them do not work, try Tkinter .__ version __

0
source

All Articles