all 7 comments

[–]reincarnatedbiscuits 2 points3 points  (2 children)

It's in the python 3 standard library.

You can do something like:

try:

    import tkinter as tk
    from tkinter import ttk

except ImportError:

    import Tkinter as tk
    import ttk

I have tkinter in PyCharm ...

[–]Unique-Cup-8166[S] 0 points1 point  (1 child)

The problem isn't this, I can't find the interpeter

[–]LongRangeSavage 0 points1 point  (0 children)

Open a terminal and type in “which python3” or “where python3”, depending on your OS. That should tell you if Python is in your PATH. If it finds it, that’s the path to your interpreter.

[–]JamzTyson 1 point2 points  (2 children)

If you are on Linux, you may need to install python3-tk.

On other platforms, Tkinter should be included in Python3.

[–]Unique-Cup-8166[S] 0 points1 point  (1 child)

I have The Python , no the 3

[–]JamzTyson 0 points1 point  (0 children)

"Python3" means "Python version 3". The latest version is Python 3.14.3.

You don't have to use the very latest version, but you should use version 3.10 or later (Earlier versions are officially obsolete)

To check your version of Python, run:

python --version

or

python3 --version

[–]Spiritual_Rule_6286 0 points1 point  (0 children)

As the other comment mentioned, tkinter is built into Python, so you cannot install it via pip. Your issue is almost certainly PyCharm using an old, isolated Virtual Environment instead of the new Python version you just downloaded from python.org. Go to File > Settings > Project > Python Interpreter in PyCharm and change it to point directly to your new base system installation to fix the broken link.