fix: use venv instead of pip --user for Arch PEP 668 compatibility

This commit is contained in:
2026-04-01 12:21:40 +02:00
parent 325cb2e6e7
commit f133b9590c
+6 -3
View File
@@ -21,8 +21,11 @@ else
echo " Für GPU: sudo pacman -S rocm-hip-sdk" echo " Für GPU: sudo pacman -S rocm-hip-sdk"
fi fi
echo "Python-Abhängigkeiten werden installiert..." VENV_DIR="$SCRIPT_DIR/.venv"
pip install --user -r "$SCRIPT_DIR/requirements.txt" echo "Python-Abhängigkeiten werden installiert (venv: $VENV_DIR)..."
python3 -m venv "$VENV_DIR"
"$VENV_DIR/bin/pip" install -q -r "$SCRIPT_DIR/requirements.txt"
PYTHON="$VENV_DIR/bin/python"
# ── Netzwerk-Modus abfragen ──────────────────────────────────────────────────── # ── Netzwerk-Modus abfragen ────────────────────────────────────────────────────
@@ -57,7 +60,7 @@ Description=tüit Transkriptor
After=graphical-session.target After=graphical-session.target
[Service] [Service]
ExecStart=$(command -v python3) ${SCRIPT_DIR}/main.py ExecStart=${SCRIPT_DIR}/.venv/bin/python ${SCRIPT_DIR}/main.py
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5
Environment=DISPLAY=:0 Environment=DISPLAY=:0