#!/bin/bash # ================================================================ # Python Virtual Environment einrichten # ================================================================ source "$(dirname "${BASH_SOURCE[0]}")/setenv.sh" if [ ! -d "$PLATZ/.venv" ]; then echo "Initialisiere Python virtual environment..." python3 -m venv "$PLATZ/.venv" --upgrade-deps echo "Erfolgreich." source "$PLATZ/.venv/bin/activate" echo "Installiere erforderliche Python Packages..." pip install -r "$PLATZ/requirements.txt" -q echo "Erfolgreich." deactivate else echo "Erforderliche Python Packages bereits installiert!" fi