From bbcb60f2c0ccf3f0fa27490174415df3a76979db Mon Sep 17 00:00:00 2001 From: Cookie987 Date: Mon, 14 Apr 2025 22:04:01 +0800 Subject: [PATCH] =?UTF-8?q?Python=E7=89=88=E6=9C=AC=E8=A6=81=E6=B1=82?= =?UTF-8?q?=E6=94=B9=E4=B8=BA3.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run.sh b/scripts/run.sh index ce604e4cb..b7ecbc849 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -357,8 +357,8 @@ run_installation() { # Python版本检查 check_python() { PYTHON_VERSION=$(python3 -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') - if ! python3 -c "import sys; exit(0) if sys.version_info >= (3,9) else exit(1)"; then - whiptail --title "⚠️ [4/6] Python 版本过低" --msgbox "检测到 Python 版本为 $PYTHON_VERSION,需要 3.9 或以上!\n请升级 Python 后重新运行本脚本。" 10 60 + if ! python3 -c "import sys; exit(0) if sys.version_info >= (3,10) else exit(1)"; then + whiptail --title "⚠️ [4/6] Python 版本过低" --msgbox "检测到 Python 版本为 $PYTHON_VERSION,需要 3.10 或以上!\n请升级 Python 后重新运行本脚本。" 10 60 exit 1 fi }