From aefacf9f82d6d59f059bf285938f7643621492f1 Mon Sep 17 00:00:00 2001 From: shivam Date: Sat, 21 Mar 2026 14:11:57 -0700 Subject: [PATCH] install.sh: use pipx venv path instead of PATH to avoid stale binary Made-with: Cursor --- scripts/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index e66d61e7050..fb02aab2950 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -91,8 +91,8 @@ LITELLM_BIN="" if command -v pipx >/dev/null 2>&1; then info "Using pipx (isolated install)" if pipx install --force "${LITELLM_PACKAGE}"; then - # pipx installs to ~/.local/bin by default; try PIPX_BIN_DIR, then PATH - for try in "${PIPX_BIN_DIR:-${HOME}/.local/bin}/litellm" "$(command -v litellm 2>/dev/null || true)"; do + # pipx installs to ~/.local/bin by default; try PIPX_BIN_DIR, then pipx venv (avoid PATH—may have stale binary) + for try in "${PIPX_BIN_DIR:-${HOME}/.local/bin}/litellm" "${PIPX_HOME:-${HOME}/.local/pipx}/venvs/litellm/bin/litellm"; do if [ -n "$try" ] && [ -x "$try" ]; then LITELLM_BIN="$try" break