py launcher
A small Windows program, run as py, that finds and starts an installed Python, optionally a specific version.
In more detail
py runs the newest Python installed, py -3.13 picks a version, and py --list shows them all. Because it lives in the always-searched Windows folder, py usually works even when PATH is wrong, which makes it a handy check. It exists only on Windows; macOS and Linux use python3.
Examples
py --listpy -3.14 hello.pyRelated terms
- Windows — Microsoft's operating system for desktops and servers.
- PATH — An environment variable holding a list of folders the shell searches, in order, to find the program for a command you type.
- Python 3 — The current major version of the Python language, first released in 2008, which this course teaches.
Taught in
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Installing Python On Windows — Hands-on Python: Complete Video Course & Book
- Installing Python On A Mac — Hands-on Python: Complete Video Course & Book
- Packages, And Your Own Library — Hands-on Python: Complete Video Course & Book
- Shipping: scripts, entry points and git — Hands-on Python: Complete Video Course & Book