Description
Python Launcher for Unix makes the py command pick a Python interpreter for you. Its aim is to find the interpreter that matches your current context, preferring the newest Python version that is as specific as possible. It is designed for a workflow where each project has its own virtual environment in its directory, although it is not limited to that. The launcher can select an interpreter from an activated virtual environment, a local virtual environment or PATH. You can state requirements on the command line or with environment variables, and the README includes a diagram of how the selection works. The project is a personal project and is not official. It is not shipped with CPython, so you install it separately. It does not read py.ini files, and it does not support the -V or -version options from the Windows launcher, which are Windows-specific.…
Highlights
- The py command picks the right interpreter for your context
- Uses activated, local .venv and PATH interpreters
- Version requirements on the command line or in environment variables
- Diagram of how interpreters are selected
- FAQ for Starship, Nushell and pyenv
Ratings & Reviews
No ratings yet
Be the first to rate Python Launcher.
People also visit
trailofbits/modern-python
Modern Python tooling with uv, ruff, ty, and pytest best practices
Python Launcher FAQ
What does Python Launcher for Unix do?
It makes the py command choose a Python interpreter that matches your current context, usually the newest suitable version.
Is it official?
No. The README says it is a personal project and is not shipped with CPython.
How does it differ from the Windows launcher?
It does not support py.ini files or the -V and -version options, and it uses environment variables for configuration instead.
Can I use my pyenv default?
Yes. The FAQ explains how to make the launcher use your default pyenv version.
Can I turn off .venv detection?
Yes. The FAQ explains how to disable automatic search and use of the .venv virtual environment.
What are the best Python Launcher alternatives?
Popular alternatives to Python Launcher include Python Fints, Pyzo and Poe the Poet. See all Python Launcher alternatives







