2017-05-02 8 views
0

Ich verwende Linux Mint 18.1 und Python 3.6.Fehler bei der Installation von Idle3.6

Ich möchte idle3.6 installieren, aber nach this package

Installation bekomme ich folgende Fehlermeldung:

Traceback (most recent call last): 
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 4, in 
<module> 
from tkinter import * 
File "/usr/local/lib/python3.6/tkinter/__init__.py", line 36, in 
<module> 
import _tkinter # If this fails your Python may not be configured for 
Tk 
ModuleNotFoundError: No module named '_tkinter' 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
File "/usr/local/bin/idle3.6", line 3, in <module> 
from idlelib.pyshell import main 
File "/usr/local/lib/python3.6/idlelib/pyshell.py", line 7, in 
<module> 
"Your Python may not be configured for Tk. **", file=sys.__stderr__) 
NameError: name 'sys' is not defined 

was ich verstehe ist, dass ich das tkinter Paket zu installieren.

, was ich bisher versucht haben, ist dieser Befehl:

sudo apt-get install python3-tk 

aber ich immer noch die obige Fehlermeldung erhalten.

Welchen Befehl sollte ich verwenden, um tkinter für Python 3.6 zu installieren?

Antwort