I have some problems with tkinter. I want to use it with python 2.7.9 or python 3.4 with DEBIAN but it give me this error in both cases:
Python 3.4.3 (default, Dec 1 2017, 16:25:43)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.4/tkinter/__init__.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'
Can you give me some advice to resolve this? I already tried
sudo apt-get install tk-dev
but
erle@erle-brain:~ $ sudo apt-get install tk-dev
[sudo] password for erle:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tk-dev
I also see that maybe I have to install tcl and tk with this instructions but:
erle@erle-brain:~/build $ sudo apt-get install tcl8.5-dev libi2c-dev autoconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tcl8.5-dev
E: Couldn't find any package by regex 'tcl8.5-dev'
Please help me :( I have to finish a University project and I need Tkinter.