Print the Python version selected by the launcher.
py --versionPrint the Python version selected by the launcher.
py --versionPrint the Python version selected by the launcher.
py --version| Option / clause | Description |
|---|---|
--version / -V | Print the selected Python interpreter version. |
-0p / --list-paths | List installed runtimes and their paths where supported by the Python launcher. |
-3[<version>] | Select a Python 3 runtime where multiple versions are installed. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.