Saturday, October 8, 2022

[SOLVED] Tkinter is not a module in Ubuntu 20.04

Issue

I was on my computer and I was trying to code some tkinter code but when I put the starters in Pycharm, there was an error saying that Tkinter is not a module and then I tested it as tkinter and it was also not found. Can someone please help me get this sorted out as I really want to do some coding and this is slowing it down.

Thanks!


Solution

Is it installed on your OS? You can try sudo apt install python3-tk or sudo apt install python-tk.

You could also try installing it via pip: pip install python-tk



Answered By - Aron Smalec
Answer Checked By - Candace Johnson (WPSolving Volunteer)