Skip to content

Self-hosted AI workspace.

Python

macOS: use venv Python for setup and launch

Rifqia62b9c137713
diff --git a/start-macos.sh b/start-macos.sh
index d8bc3f3c0..966989d3a 100755
--- a/start-macos.sh
+++ b/start-macos.sh
@@ -117,10 +117,11 @@ if [ ! -d venv ]; then
echo "▶ Creating Python environment…"
"$PY" -m venv venv
fi
+VENV_PY="./venv/bin/python3"
echo "▶ Installing Python packages (first run downloads a few — can take a few minutes)…"
-"$PY" -m pip install --quiet --upgrade pip
+"$VENV_PY" -m pip install --quiet --upgrade pip
# Not --quiet: this is the slow step, so show progress (and any real errors).
-"$PY" -m pip install -r requirements.txt
+"$VENV_PY" -m pip install -r requirements.txt
# 4. First-run setup: creates data dirs and prints an initial admin password
# the first time (idempotent — does nothing if already set up). Suppress its
@@ -179,4 +180,4 @@ if [ -n "$TAILSCALE_URL" ]; then
fi
echo " (this takes a few seconds; press Ctrl+C here to stop)"
echo
-"$PY" -m uvicorn app:app --host "$HOST" --port "$PORT"
+"$VENV_PY" -m uvicorn app:app --host "$HOST" --port "$PORT"