# OMS 小红书 Agent 桌面端 $ErrorActionPreference = "Stop" $Root = Split-Path -Parent $MyInvocation.MyCommand.Path $Py = Join-Path $Root ".venv\Scripts\python.exe" if (-not (Test-Path $Py)) { Write-Host "创建虚拟环境..." py -3 -m venv (Join-Path $Root ".venv") & (Join-Path $Root ".venv\Scripts\pip.exe") install -r (Join-Path $Root "requirements.txt") } Set-Location $Root & $Py (Join-Path $Root "main.py")