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"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user