fix: use venv instead of pip --user for Arch PEP 668 compatibility
This commit is contained in:
+6
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user