From abebcd3cfad8a7894a4cf978d9e66cb3a8b1ee07 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Fri, 24 Jul 2026 09:42:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E9=99=A4=20get-pip.py=20?= =?UTF-8?q?=E5=86=85=E9=83=A8=20pip=20=E7=9A=84=20root=20=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy/install.sh b/scripts/deploy/install.sh index cbabdbf..a2fe8e2 100644 --- a/scripts/deploy/install.sh +++ b/scripts/deploy/install.sh @@ -60,7 +60,7 @@ if [ -d "$INSTALL_DIR/deps" ] && ls "$INSTALL_DIR/deps"/*.whl >/dev/null 2>&1; t # 先确保 pip3 可用(离线安装) if ! command -v pip3 &>/dev/null; then if [ -f "$INSTALL_DIR/deps/get-pip.py" ]; then - python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" --no-setuptools --no-wheel 2>&1 + PIP_ROOT_USER_ACTION=ignore python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" --no-setuptools --no-wheel 2>&1 fi fi if pip3 install --force-reinstall --root-user-action=ignore "$INSTALL_DIR"/deps/*.whl 2>&1; then