I have installed tkinter on my Raspberry Pi that is running Raspbian. It is installed for both python2 and python3. However while importing it in python3, it shows me an error:
>>> import tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.5/tkinter/__init__.py", line 35, in <module> import _tkinter # If this fails your Python may not be configured for Tk ImportError: No module named '_tkinter'
While importing 'Tkinter' for python2, it works well. But for python3, it doesn't. I've tried all the solutions in other answers related to my problem on StackExchange. I have Python 3.5.1 and Python 2.7.13.
Thanks for your help.