$ErrorActionPreference = 'Stop' $env:PYTHONUTF8 = '1' $python = Join-Path $PSScriptRoot '.venv\Scripts\python.exe' if (-not (Test-Path $python)) { throw "未找到虚拟环境解释器: $python" } Set-Location $PSScriptRoot & $python 'app\main.py'