python

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
python [12/03/2024 - 09:34] adminpython [15/04/2025 - 09:27] (aktuell) thommie_netzwissen.de
Zeile 1: Zeile 1:
 ====== Python ====== ====== Python ======
 +
 +===== Basics =====
 +
 +https://www.w3schools.com/python/python_intro.asp
  
 [[https://docs.python.org/3/tutorial/|https://docs.python.org/3/tutorial/]] [[https://docs.python.org/3/tutorial/|https://docs.python.org/3/tutorial/]]
 +
 +===== Installation =====
  
 PIPX Install and Run Python Applications in Isolated Environments PIPX Install and Run Python Applications in Isolated Environments
Zeile 9: Zeile 15:
 Tumbleweed: systemweite Installation über zypper install python-xyz. z.B. python311-rsa Tumbleweed: systemweite Installation über zypper install python-xyz. z.B. python311-rsa
  
-venv anlegen:+**venv anlegen**
  
-<notranslate>+[[https://wiki.ubuntuusers.de/venv/|https://wiki.ubuntuusers.de/venv/]] 
 + 
 +<code>
 python3 -m venv /home/BENUTZER/venv-test python3 -m venv /home/BENUTZER/venv-test
-</notranslate>+</code>
  
-<notranslate>+**venv beenden** 
 + 
 +<code> 
 +(ampki) thommie@odysseus4:~/git/gitlabdevo/mbag/ampki> source activate 
 +bash: activate: Datei oder Verzeichnis nicht gefunden 
 +(ampki) thommie@odysseus4:~/git/gitlabdevo/mbag/ampki> source bin/activate 
 +(ampki) thommie@odysseus4:~/git/gitlabdevo/mbag/ampki> deactivate 
 +thommie@odysseus4:~/git/gitlabdevo/mbag/ampki>  
 +</code> 
 + 
 +**venv reaktivieren** 
 + 
 +<code>
 source /home/BENUTZER/venv-test/bin/activate source /home/BENUTZER/venv-test/bin/activate
-</notranslate>+</code> 
 + 
 +===== Einfacher http Server ===== 
 + 
 +<code> 
 +(ampki) thommie@odysseus4:~/git/gitlabdevo/mbag/ampki> python3 -m RangeHTTPServer 8888 
 +Serving HTTP on 0.0.0.0 port 8888 (http://0.0.0.0:8888/) ... 
 +127.0.0.1 - - [15/Apr/2025 11:22:22] "GET / HTTP/1.1" 200 - 
 +127.0.0.1 - - [15/Apr/2025 11:22:22] code 404, message File not found 
 +127.0.0.1 - - [15/Apr/2025 11:22:22] "GET /favicon.ico HTTP/1.1" 404 - 
 +</code> 
 + 
 +{{:screenshot_20250415_112517.png?400|}}
  
  
  • python.1710236083.txt.gz
  • Zuletzt geändert: 17/08/2024 - 07:06
  • (Externe Bearbeitung)