diff --git a/scripts/package.sh b/scripts/package.sh index 5b9ca9e..37d83cc 100644 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -79,7 +79,7 @@ echo "[6/7] 离线 Python 依赖..." mkdir -p "$BUILD_DIR/deps" # 尝试下载 onnxruntime ARM64 wheel(离线安装用) if command -v pip3 &>/dev/null; then - pip3 download onnxruntime numpy --platform linux_aarch64 --platform manylinux2014_aarch64 --only-binary=:all: -d "$BUILD_DIR/deps/" 2>/dev/null && echo " ✓ ARM64 wheels" || echo " ⚠ pip download 失败,跳过" + pip3 download onnxruntime numpy --platform linux_aarch64 --platform manylinux2014_aarch64 --only-binary=:all: --python-version 3.10 -d "$BUILD_DIR/deps/" 2>/dev/null && echo " ✓ ARM64 wheels" || echo " ⚠ pip download 失败,跳过" else echo " ⚠ pip3 不可用,跳过" fi