How can I use Tkinter
with Python 3.11.3 that I built from source?
I have another version of Python (3.10.6) that came with my distribution (Pop!_OS) and on that version I can successfully import tkinter.
But when I run Python 3.11.3 that I build from source I get the following messages:
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/python/3.11.3/lib/python3.11/tkinter/__init__.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
I used the following script builder to build Python 3.11.3 from source.
https://www.build-python-from-source.com/
If you have found a way to install Tkinter
so that it can work with the version of Python 3.11.3 that you built from source, please reply with the details.
I have done a lot of searching to find a way to do this, but so far have not been successful.
Obviously Tkinter
must be on my system, but, for some reason Python 3.11.3 can not "see" it.