From d9f3c6ca58f290525ef47a8dcb091e4b3ee45ce7 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Thu, 23 Jul 2026 18:59:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20pip=20download=20=E6=8C=87=E5=AE=9A=20Py?= =?UTF-8?q?thon=203.10=EF=BC=8C=E5=8C=B9=E9=85=8D=20Ubuntu=2022.04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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