Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Fix macOS install.sh: stdin consumption and Python discovery (#4472)
Daniel Hand0e5a1d61e5c
diff --git a/install.sh b/install.shindex 5e846a2feb3..50303ab75a7 100755--- a/install.sh+++ b/install.sh@@ -37,8 +37,8 @@ _smart_apt_install() {_PKGS="$*"# Step 1: Try installing without sudo (works when already root)- apt-get update -y >/dev/null 2>&1 || true- apt-get install -y $_PKGS >/dev/null 2>&1 || true+ apt-get update -y </dev/null >/dev/null 2>&1 || true+ apt-get install -y $_PKGS </dev/null >/dev/null 2>&1 || true# Step 2: Check which packages are still missing_STILL_MISSING=""@@ -76,8 +76,8 @@ _smart_apt_install() {exit 1;;*)- sudo apt-get update -y- sudo apt-get install -y $_STILL_MISSING+ sudo apt-get update -y </dev/null+ sudo apt-get install -y $_STILL_MISSING </dev/null;;esacelse@@ -119,7 +119,7 @@ case "$OS" inecho ""echo "==> Xcode Command Line Tools are required."echo " Installing (a system dialog will appear)..."- xcode-select --install 2>/dev/null || true+ xcode-select --install </dev/null 2>/dev/null || trueecho " After the installation completes, please re-run this script."exit 1fi@@ -152,7 +152,7 @@ if [ -n "$MISSING" ]; thenecho " Install Homebrew from https://brew.sh then re-run this script."exit 1fi- brew install $MISSING+ brew install $MISSING </dev/null;;linux|wsl)if command -v apt-get >/dev/null 2>&1; then@@ -175,7 +175,7 @@ if ! command -v uv >/dev/null 2>&1; thenecho "==> Installing uv package manager..."_uv_tmp=$(mktemp)download "https://astral.sh/uv/install.sh" "$_uv_tmp"- sh "$_uv_tmp"+ sh "$_uv_tmp" </dev/nullrm -f "$_uv_tmp"if [ -f "$HOME/.local/bin/env" ]; then. "$HOME/.local/bin/env"@@ -197,6 +197,15 @@ echo "==> Installing unsloth (this may take a few minutes)..."uv pip install --python "$VENV_NAME/bin/python" unsloth --torch-backend=auto# ── Run studio setup ──+# Ensure the venv's Python is on PATH for setup.sh's Python discovery.+# On macOS the system Python may be outside the 3.11-3.13 range that+# setup.sh requires, but uv already installed a compatible interpreter+# inside the venv.+VENV_ABS_BIN="$(cd "$VENV_NAME/bin" && pwd)"+if [ -n "$VENV_ABS_BIN" ]; then+ export PATH="$VENV_ABS_BIN:$PATH"+fi+echo "==> Running unsloth studio setup...""$VENV_NAME/bin/unsloth" studio setup </dev/null