diff --git a/scripts/deploy/install.sh b/scripts/deploy/install.sh index 8657e24..cbabdbf 100644 --- a/scripts/deploy/install.sh +++ b/scripts/deploy/install.sh @@ -63,7 +63,7 @@ if [ -d "$INSTALL_DIR/deps" ] && ls "$INSTALL_DIR/deps"/*.whl >/dev/null 2>&1; t 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 "$INSTALL_DIR"/deps/*.whl 2>&1; then + if pip3 install --force-reinstall --root-user-action=ignore "$INSTALL_DIR"/deps/*.whl 2>&1; then echo " ✓ Python 依赖已安装" else echo " ⚠ Python 依赖安装失败,尝试桥接用户包..."