Eu instalei recentemente o Python e o IDLE no synaptic. No entanto, quando eu testo o Tkinter, recebo o seguinte erro:
import Tkinter
Tkinter._test()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 3790, in _test
root = Tk()
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1767, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable tk.tcl in the following directories:
/usr/local/src/tcl8.6.1/library/tk8.6 /usr/local/src/tcl8.6.1/tk8.6 /usr/lib/tk8.6 /usr/local/lib/tk8.6 /lib/tk8.6 /usr/library
This probably means that tk wasn't installed properly.
No entanto, instalei o tk usando o seguinte comando:
sudo apt-get install tk8.6 tk-dev
Eu não tenho ideia do que está acontecendo. Para instalar o ambiente do módulo, compilei tcl8.6.1
da origem em /usr/local/src/tcl8.6.1
. Poderia ser esse o problema?
Obrigado
melhor,
Tom