Error importing TkInter in Python 3.5 [closed]

1

I receive an error when importing TkInter in Python 3.5. This is the error message that shows:

  

File "/usr/local/lib/python3.5/tkinter/init.py", line 35, in       import _tkinter # If this fails your Python may not be configured for Tk

     

ImportError: No module named '_tkinter'

I have ubuntu 14.04 and I'm running Python 3.5, and probe install like this:

sudo apt-get install python3-tk

sudo apt-get install python-tk

I do not know what the problem is so I try to import it:

from tkinter import *

Why do I get that error? How can I fix it?

    
asked by cristhian 26.07.2016 в 05:53
source

2 answers

0

First, make sure you have python-support installed:

sudo apt-get install python-support

I have a question. Are you using an IDE or terminal?

    
answered by 26.07.2016 в 06:40
0

From python 3.x it is Tkinter instead of tkinter. Try and tell us please

    
answered by 30.10.2016 в 23:53