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