Skip to content

Commit fca2aaf

Browse files
authored
fix: install uv inside active venv (#1642)
Signed-off-by: jamesgao-jpg <james.gao@zilliz.com>
1 parent 50df44e commit fca2aaf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/install_deps.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ install_uv() {
8989

9090
if ! command -v uv >/dev/null 2>&1; then
9191
echo "[install_deps] Installing uv with pip3..."
92-
pip3_install --user uv
92+
if [[ -n "${VIRTUAL_ENV:-}" ]]; then
93+
pip3_install uv
94+
else
95+
pip3_install --user uv
96+
fi
9397
fi
9498

9599
if ! command -v uv >/dev/null 2>&1; then

0 commit comments

Comments
 (0)