All the best.
I'm running Python 3.10.2 on Windows 11 (native install, no Anaconda). I need to make a graphical interface, the problem is that I don't have tkinter
, although supposedly it should come by default:
Tkinter (and, since Python 3.1, ttk, the interface to the newer themed widgets) is included in the Python standard library. We highly recommend installing Python using the standard binary distributions from python.org. These will automatically install Tcl/Tk, which of course, is needed by Tkinter.
As long PySimpleGUI
as ntk
they require this package, then I can't use them. I've tried pretty much everything in this thread (adapting the instructions to my OS and Python version): Install tkinter for Python
I currently have these packages installed:
C:\Users\Pablo>pip list
Package Version
------------- --------
autopep8 1.6.0
imutils 0.5.4
ntk 1.1.3
numpy 1.22.2
opencv-python 4.5.5.62
pip 21.2.4
pycodestyle 2.8.0
PySimpleGUI 4.57.0
setuptools 58.1.0
Tcl 0.2
tk 0.1.0
toml 0.10.2
But, if I try to import the library, I get the following:
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'
>>>
Any idea what could be happening?
Thanks.