From 7bce50cbb17b3d0e5b2d1704a9f945460654fc96 Mon Sep 17 00:00:00 2001 From: jamesgao-jpg Date: Fri, 22 May 2026 02:46:10 +0000 Subject: [PATCH] fix: install uv inside active venv Signed-off-by: jamesgao-jpg --- scripts/install_deps.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index e9938642d..8af609750 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -89,7 +89,11 @@ install_uv() { if ! command -v uv >/dev/null 2>&1; then echo "[install_deps] Installing uv with pip3..." - pip3_install --user uv + if [[ -n "${VIRTUAL_ENV:-}" ]]; then + pip3_install uv + else + pip3_install --user uv + fi fi if ! command -v uv >/dev/null 2>&1; then