确保安装 Python 时勾选了 “Add Python to PATH” 和 “Install launcher for all users”。 手动检查 C:\Windows\py.exe 是否存在。
py --list
py -3.11 # 启动 Python 3.11 py -3.9 # 启动 Python 3.9