I have just upgraded from 20.04 to 22.04. Now I can not use tkinter anymore.
When I start the Python interpreter in the terminal with 'Python3.10' and then typing 'import tkinter' the system tells me: No module named '_tkinter'.
When I try to install with 'sudo apt-get -y install python3-tk' the system tells me: python3-tk is already the newest version (3.10.6-1~22.04).
I have searched this site and almost the complete internet, but nothing seems to work.
How do I get tkinter active again?
echo PATHin terminal to see where it is currently set. – m_krsic Mar 15 '23 at 13:55sudo apt install --reinstall python3-tk– steeldriver Mar 15 '23 at 16:26/usr/lib/python3.10/lib-dynloadfrom sys.path so I suspect there is something screwed up in the initialization of your PYTHONPATH – steeldriver Mar 15 '23 at 16:42_tkinter.cpython-310-xxxxxx.sofile in/usr/lib/python3.10/lib-dynload/? – steeldriver Mar 15 '23 at 16:57/usr/lib/python3.10/lib-dynload/is not in the sys.path. All directories in it start with/usr/local/lib/.....And in directory/usr/local/lib/python3.10/lib-dynload$I can see NO entry with_tkinter.....– frie Mar 16 '23 at 09:20echo $PYTHONPATHdisplays an empty line. – frie Mar 16 '23 at 11:37