mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
py: add page (#16145)
* py: add page * Update pages/windows/py.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/windows/py.md Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
b1eebc865f
commit
30fca82c55
1 changed files with 21 additions and 0 deletions
21
pages/windows/py.md
Normal file
21
pages/windows/py.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
# py
|
||||
|
||||
> Python Launcher for Windows that runs with specified Python version.
|
||||
> See also: `python`.
|
||||
> More information: <https://docs.python.org/3/using/windows.html#python-launcher-for-windows>.
|
||||
|
||||
- Start a REPL (interactive shell), optionally with arguments supported by `python` (like `-c`, `-m`, etc.):
|
||||
|
||||
`py {{python_arguments}}`
|
||||
|
||||
- Execute a specific Python file:
|
||||
|
||||
`py {{path/to/file.py}}`
|
||||
|
||||
- Run specific Python version. If the version is missing, and `PYLAUNCHER_ALLOW_INSTALL` environment variable is set, auto-install via Microsoft Store or Winget:
|
||||
|
||||
`py {{-2|-3.7|...}}`
|
||||
|
||||
- List installed Python versions:
|
||||
|
||||
`py --list`
|
Loading…
Add table
Reference in a new issue