安装

确保安装 Python 时勾选了 “Add Python to PATH” 和 “Install launcher for all users”。

手动检查 C:\Windows\py.exe 是否存在。

查看已安装的 Python 版本

py --list

运行指定版本的 Python

py -3.11   # 启动 Python 3.11
py -3.9    # 启动 Python 3.9