Skip to content

Launch-windows.ps1 fails to detect Python when only a newer version (3.14) is registered with the py launcher #6047

Description

@PedroFolk

Prerequisites

  • I searched open issues and discussions and did not find an existing report of this bug.
  • This is not a security vulnerability. (Vulnerabilities go to GitHub Security Advisories — see SECURITY.md.)
  • I am running the latest code from the dev branch (the default branch you get on clone, where fixes land first) and the bug still reproduces there. Please git pull the latest dev before filing.

Install Method

Windows native (launch-windows.ps1)

Operating System

Windows

Steps to Reproduce

  1. Have only Python 3.14 registered with the py launcher (py with no
    args resolves to 3.14), and no python command on PATH pointing at
    3.11+.
  2. Run powershell -ExecutionPolicy Bypass -File .\launch-windows.ps1.

Expected Behaviour

Script detects Python 3.14 (which satisfies the documented "Python 3.11+"
requirement) via the py launcher and proceeds.

Actual Behaviour

Script fails with:
"Couldn't find Python 3.11+ for Windows setup."

Logs / Screenshots

==> Checking for Python

ERROR: Couldn't find Python 3.11+ for Windows setup. Install Python 3.11+ (or open the Python launcher with 'py -3.11') from https://www.python.org/downloads/, then re-run this script.

Press Enter to exit:

Model / Backend (if relevant)

No response

Are you willing to submit a fix?

Yes — I can open a PR

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready for reviewDescription complete — ready for maintainer review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions