Ich versuche zu verwendenLEERLAUFaber ich habe diesen Fehler:
ModuleNotFoundError: No module named 'idlelib'
Ich habe versucht, IDLE zu entfernen und neu zu installieren, aber es scheint auch nicht zu funktionieren. Ich verwende derzeitUbuntu 18.04 LTSund verwende einen Nvidia Jetson TX2. Meins python3 -V
ist 3.7.3.
Jede Hilfe oder Antwort wäre hilfreich.
Hier ist die Ausgabe von python -c "import sys; print(sys.path)"
undlocate "idlelib/__init__.py"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-aarch64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0']
Antwort1
Ich hatte das gleiche Problem.
Ich habe Tk und idle3 installiert und mein Problem wurde behoben
Tk installieren
sudo apt-get install python3-tk
Installieren Sie idle3
sudo apt-get install idle3
Antwort2
Versuchen Sie, das Paket für Ihre Python-Version zu installieren (für Python 3.8 ist es „idle-python3.8“):
sudo apt install deb-package-name
Antwort3
sudo apt-get installiere idle-python3.x
Antwort4
Ich hatte das gleiche Problem in meinem Ubuntu 16.04-Betriebssystem, als ich idle3 verwendete. Ich habe die Version python3.6.10 auf meinem System. Aber als ich idle-python3.6 statt idle3 eingab, öffnete sich die IDE ohne Probleme.