pub fn resolve_canonical_python_bin() -> StringExpand description
Resolve the canonical Python binary path — the single interpreter ALL ML components install into.
Resolution order:
MLSTACK_PYTHON_BIN/UV_PYTHON— an explicit user override always wins (respects user intent; e.g. pinning a specific interpreter).- The managed global env (
~/.mlstack/global/bin/python) if it exists — the deterministic single source (Stage 0). Installers create it on first global install viaensure_global_venv. - Active virtualenv
- uv-managed Python (preferred for ML workloads)
- System Python
Falls back to "python3" if no interpreter is found.