From f133b9590c0b5b71f3abfca28a6eabafdcdd62ab Mon Sep 17 00:00:00 2001 From: "thomas.kopp" Date: Wed, 1 Apr 2026 12:21:40 +0200 Subject: [PATCH] fix: use venv instead of pip --user for Arch PEP 668 compatibility --- install.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 40906f9..ef61db0 100755 --- a/install.sh +++ b/install.sh @@ -21,8 +21,11 @@ else echo " Für GPU: sudo pacman -S rocm-hip-sdk" fi -echo "Python-Abhängigkeiten werden installiert..." -pip install --user -r "$SCRIPT_DIR/requirements.txt" +VENV_DIR="$SCRIPT_DIR/.venv" +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 ──────────────────────────────────────────────────── @@ -57,7 +60,7 @@ Description=tüit Transkriptor After=graphical-session.target [Service] -ExecStart=$(command -v python3) ${SCRIPT_DIR}/main.py +ExecStart=${SCRIPT_DIR}/.venv/bin/python ${SCRIPT_DIR}/main.py Restart=on-failure RestartSec=5 Environment=DISPLAY=:0