#### Other tools - [`hatch python show`](https://hatch.pypa.io/latest/cli/reference/#hatch-python-show) - [`pdm python list`](https://pdm-project.org/en/latest/reference/cli/#list_2) - [`uv python list`](https://docs.astral.sh/uv/reference/cli/#uv-python-list) - [`pipx interpreter list`](https://pipx.pypa.io/latest/docs/#pipx-interpreter) - [`pymanager list`](https://peps.python.org/pep-0773/#list-subcommand) #### Purpose List all of the discovered interpreters. #### Notes - [Discourse discussion](https://discuss.python.org/t/what-information-is-useful-to-know-statically-about-an-interpreter/25563) - [PEP 711 cross-post](https://discuss.python.org/t/pep-711-pybi-a-standard-format-for-distributing-python-binaries/25547/14?u=brettcannon) - `--format`: Specify the output format; all output in UTF-8 - `jsonl`: Print [interpreter details](https://github.com/brettcannon/python-launcher/discussions/168) using [JSON Lines](https://jsonlines.org/) - This should work with [`json -o` for Nu](https://www.nushell.sh/commands/docs/from_json.html) - Results are streamed as results are found instead of being sorted - Fields - `version` - `path` - `virtual`? - Can be inferred based on how the environment was found - `via` - `$VIRTUAL_ENV` - `.venv` - `$PATH` - `pretty` (default): Print interpreter details in a format designed to be human-readable - Include same details as the JSONL output - Sorted by how "good" the interpreter is - `--ignore-venv`: Ignore virtual environments (or default to `--include-venv`)? - Might be unnecessary or only useful via `--one` - `--one` - Only print the path to the "best" interpreter - https://github.com/python/cpython/issues/102522 would give more accurate version info for virtual environments