Ich installierte Tensorflow und Docker Tool Box auf Windows.Tensorflow läuft auf der virtuellen Maschine in Docker Toolbox.Alles ging gut, außer wenn ich 'importieren matplotlib.pyplot as plt', einen Fehler eingeben aufgetreten, dass 'kein Modul namens _tkinter bitte installieren Sie das Python-tk Paket'. Ich habe versucht, 'pip installieren Python-tk', aber es funktioniert nicht. Es gibt jedoch keinen Fehler, wenn ich es auf dem lokalen Host ausführe. Plus die Standardversion, die auf meinem Laptop installiert ist, ist Python 3.5, während die Standardversion auf Tensorflow 2.7 ist. Wusste jemand, wie man das löst?Python-Tk-Paket für Tensflow auf Windows
1
A
Antwort
1
Ich habe das gleiche Problem.
es wurde gelöst, indem nächsten Befehle in Terminal ausgeführt wird:
sudo apt-get update
sudo apt-get install python-tk
Danach Import erfolgreich war.
Verwandte Themen
- 1. Curses für PHP auf Windows
- 2. C++ API für SQL auf Windows
- 3. Bunte Shell für Haskell auf Windows?
- 4. Memcached-Erweiterung für PHP auf Windows Server
- 5. Bauen QT5 Projekt auf Ubuntu für Windows
- 6. Developing in Qt für iOS auf Windows
- 7. ionische läuft nicht für Android auf Windows
- 8. Gute Freeware für Ablaufdiagramme auf Windows?
- 9. SciPy Installation auf Windows für Python 3.5
- 10. native Bibliothek für TensorFlow Java auf Windows
- 11. Lauf Dämmerung Tests auf Homestead für Windows
- 12. Kompilieren für Windows auf Cygwin/Mingw
- 13. PHP fopen für URL: Alternatives auf Windows
- 14. Entsprechung von wählen für Rohre auf Windows
- 15. gtk 2.7 Paket für Python auf Windows
- 16. Rechtsklick auf eine Aktion für Windows-Formularschaltflächen
- 17. Ich kann nicht auf Docker für Windows
- 18. Maven auf Windows-Subsystem für Linux
- 19. Einstellung Java-Pfad auf Windows für Ant
- 20. Autoplay HTML auf CD für Windows & Mac
- 21. Windows-Dienst für Windows Mobile
- 22. Windows Stapelauswahlbefehl für Windows XP & 2003
- 23. Express für Windows 8 vs Express für Windows-Desktop
- 24. Bignum-Bibliotheken für Windows?
- 25. besserer Befehl für Windows?
- 26. snprintf für Windows CE
- 27. iPhone Simulator für Windows
- 28. Zugriff auf localhost auf Windows
- 29. Python-Anwendung für Windows
- 30. Wget für Windows 10
Haben Sie es geschafft, dies zu lösen? –