Hallo,
danke für die Ergänzung! Der Artikel ist jetzt wieder im Wiki.
Wikiteam
Anmeldungsdatum: Beiträge: 1312 Wohnort: Bad Oeynhausen |
Hallo, danke für die Ergänzung! Der Artikel ist jetzt wieder im Wiki. |
(Themenstarter)
Anmeldungsdatum: Beiträge: 865 Wohnort: Pfalz |
Hi noisefloor, habe eine Rückfrage zum pip-Absatz: "Mithilfe von pip wird die aktuelle, stabile Version von Thonny installiert. Vorher muss man das Tkinter Modul installieren:" Unter meinem Testrechner 23.04 (22.04 nicht geprüft) habe ich zunächst python3-tk deinstalliert. Der direkte Befehl Die manuelle Installation mit dem Skript habe ich mehrfach benutzt, das funktioniert gut. LG |
Ehemaliger
Anmeldungsdatum: Beiträge: 29067 Wohnort: WW |
Hallo, das dürfe eigentlich nicht gezogen werden. Was bei der Installation via pip mitinstalliert wird steht in der Datei requirements.txt. Die sieht für Thonny aktuelle so aus: https://github.com/thonny/thonny/blob/master/requirements.txt. Da ist keine Abhängigkeit zu einem Tkinter Modul drin. Kann ich später auch nochmal auf einem anderen Rechner testen. Gruß, noisefloor |
(Themenstarter)
Anmeldungsdatum: Beiträge: 865 Wohnort: Pfalz |
Hi, habe eben eine ganz neue VM mit 22.04 eingerichtet und aktualisiert. ~$ apt list python-tk Auflistung\u2026 Fertig python-tk/jammy 2.7.18-1build1 amd64 ist schon installiert. Dann habe ich ausgeführt: ~$ sudo apt install python3-pip #... ~$ pip3 install thonny Defaulting to user installation because normal site-packages is not writeable Collecting thonny Downloading thonny-4.1.3-py3-none-any.whl (2.4 MB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 2.4/2.4 MB 372.4 kB/s eta 0:00:00 Collecting asttokens>=2.0 Downloading asttokens-2.4.0-py2.py3-none-any.whl (27 kB) Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (from thonny) (0.37.1) Requirement already satisfied: setuptools>=45.2 in /usr/lib/python3/dist-packages (from thonny) (59.6.0) Collecting pylint>=2.4 Downloading pylint-3.0.1-py3-none-any.whl (510 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 510.2/510.2 KB 369.9 kB/s eta 0:00:00 Collecting pyserial>=3.4 Downloading pyserial-3.5-py2.py3-none-any.whl (90 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 90.6/90.6 KB 470.0 kB/s eta 0:00:00 Collecting jedi>=0.18.1 Downloading jedi-0.19.1-py2.py3-none-any.whl (1.6 MB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 1.6/1.6 MB 319.3 kB/s eta 0:00:00 Collecting Send2Trash>=1.5 Downloading Send2Trash-1.8.2-py3-none-any.whl (18 kB) Collecting mypy>=0.761 Downloading mypy-1.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.2 MB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 12.2/12.2 MB 174.4 kB/s eta 0:00:00 Collecting docutils>=0.16 Downloading docutils-0.20.1-py3-none-any.whl (572 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 572.7/572.7 KB 155.1 kB/s eta 0:00:00 Requirement already satisfied: six>=1.12.0 in /usr/lib/python3/dist-packages (from asttokens>=2.0->thonny) (1.16.0) Collecting parso<0.9.0,>=0.8.3 Downloading parso-0.8.3-py2.py3-none-any.whl (100 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 100.8/100.8 KB 174.9 kB/s eta 0:00:00 Collecting mypy-extensions>=1.0.0 Downloading mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB) Collecting typing-extensions>=4.1.0 Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB) Collecting tomli>=1.1.0 Downloading tomli-2.0.1-py3-none-any.whl (12 kB) Collecting platformdirs>=2.2.0 Downloading platformdirs-3.11.0-py3-none-any.whl (17 kB) Collecting dill>=0.2 Downloading dill-0.3.7-py3-none-any.whl (115 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 115.3/115.3 KB 180.6 kB/s eta 0:00:00 Collecting mccabe<0.8,>=0.6 Downloading mccabe-0.7.0-py2.py3-none-any.whl (7.3 kB) Collecting isort<6,>=4.2.5 Downloading isort-5.12.0-py3-none-any.whl (91 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 91.2/91.2 KB 172.0 kB/s eta 0:00:00 Collecting astroid<=3.1.0-dev0,>=3.0.0 Downloading astroid-3.0.1-py3-none-any.whl (275 kB) \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 275.2/275.2 KB 225.5 kB/s eta 0:00:00 Collecting tomlkit>=0.10.1 Downloading tomlkit-0.12.1-py3-none-any.whl (37 kB) Installing collected packages: pyserial, typing-extensions, tomlkit, tomli, Send2Trash, platformdirs, parso, mypy-extensions, mccabe, isort, docutils, dill, asttokens, mypy, jedi, astroid, pylint, thonny WARNING: The scripts pyserial-miniterm and pyserial-ports are installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script send2trash is installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts isort and isort-identify-imports are installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The script docutils is installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts dmypy, mypy, mypyc, stubgen and stubtest are installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: The scripts pylint, pylint-config, pyreverse and symilar are installed in '/home/USER/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed Send2Trash-1.8.2 astroid-3.0.1 asttokens-2.4.0 dill-0.3.7 docutils-0.20.1 isort-5.12.0 jedi-0.19.1 mccabe-0.7.0 mypy-1.6.0 mypy-extensions-1.0.0 parso-0.8.3 platformdirs-3.11.0 pylint-3.0.1 pyserial-3.5 thonny-4.1.3 tomli-2.0.1 tomlkit-0.12.1 typing-extensions-4.8.0 # Installation fertig ~$ thonny Der Befehl 'thonny' wurde nicht gefunden, kann aber installiert werden mit: sudo snap install thonny # version 4.1.3, or sudo apt install thonny # version 3.3.14-1 Informationen zu neuen Versionen sind mit 'snap info thonny' zu finden. Hat nicht ohne Weiteres funktioniert. LG |
Ehemaliger
Anmeldungsdatum: Beiträge: 29067 Wohnort: WW |
Hallo, python-tk installiert das Tk-Modul für Python 2, nicht Python 3. Des Weiteren steht in der Ausgabe von pip doch schon drin, warum du Thonny nicht aufrufen kannst. Du installierst (richtigerweise) lokal für deine Nutzer, aber der Pfad zu den Executables /home/USER/.local/bin ist nicht in PATH hinterlegt. Siehe Umgebungsvariable/Dateien Gruß, noisefloor |
(Themenstarter)
Anmeldungsdatum: Beiträge: 865 Wohnort: Pfalz |
Hallo, alles klar, damit (als root) ist es ohne Mehraufwand durchgelaufen: sudo apt install python3-tk sudo apt-get install python3-pip python3-venv sudo pip3 install thonny Evtl. könntest du noch den Link zur Umgebungsvariablen ergänzen, falls das ein User nicht kennt. LG |
Ehemaliger
Anmeldungsdatum: Beiträge: 29067 Wohnort: WW |
Hallo, mit pip systemweit installieren ist keine gute Idee und wird in Zukunft wohl auch von pip unterbunden, siehe https://peps.python.org/pep-0668/. Wann das bei Ubuntu Einzug hält - keine Ahnung. Debian hat mit Bookworm umgestellt.
Also das hat nix mit Thonny zu tun. Wenn man pip nutzt hat man hoffentlich den pip Artikel gelesen - und da steht das drin. Gruß, noisefloor |