I was trying to run a program that I have been making and ran into a problem with tkinter not being installed, as when I try to run my script in pycharm I get this error: ImportError: No module named '_tkinter', please
install the python3-tk package`
So I searched on here and found a solution and entered these commands:
sudo apt-get install python-support
sudo update-python-modules -a
which didn't work so I tried:
sudo apt-get install python3-tk
which was tagged as the answer on this question but it threw this error at me:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Being pretty new to linux and the terminal, I am completely clueless as to how to do this.
I am using python 3.5 and just want to install tkinter so I can run this script, also before anyone asks yes I have imported tkinter
and not Tkinter
.