From 16134bd150a5a74a15ce2254284fa6f5741732bc Mon Sep 17 00:00:00 2001 From: zhayujie Date: Mon, 8 Jun 2026 20:19:57 +0800 Subject: [PATCH] fix: update python version in powershell script --- scripts/run.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run.ps1 b/scripts/run.ps1 index 993e8b49..636ade2f 100644 --- a/scripts/run.ps1 +++ b/scripts/run.ps1 @@ -201,7 +201,7 @@ function Find-Python { $ver = & $bin.Source -c "import sys; v=sys.version_info; print(f'{v.major}.{v.minor}')" 2>$null $parts = $ver -split '\.' $major = [int]$parts[0]; $minor = [int]$parts[1] - if ($major -eq 3 -and $minor -ge 9 -and $minor -le 13) { + if ($major -eq 3 -and $minor -ge 7 -and $minor -le 13) { return $bin.Source } } catch {} @@ -212,7 +212,7 @@ function Find-Python { $PythonCmd = Find-Python function Assert-Python { if (-not $PythonCmd) { - Write-Err (T "未找到 Python 3.9-3.13,请从 https://www.python.org/downloads/ 安装" "Python 3.9-3.13 not found. Please install from https://www.python.org/downloads/") + Write-Err (T "未找到 Python 3.7-3.13,请从 https://www.python.org/downloads/ 安装" "Python 3.7-3.13 not found. Please install from https://www.python.org/downloads/") Read-Host (T "按回车退出" "Press Enter to exit") exit 1 }