<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/58020>58020</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-format on Windows looks for `python3` rather than `py`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          3geek14
      </td>
    </tr>
</table>

<pre>
    When installing on Windows 11 and running `clang-format`, I got the following output:

    >clang-format --version
    'python3' is not recognized as an internal or external command,
    operable program or batch file.

Windows does come with Python 3, but the name is `py`:

    >py --version
    Python 3.9.13

As a quick workaround, I've created a one-line file `python3.bat` and added it to my PATH:

    C:\Windows\py.exe %*

So that this workaround isn't needed for future users, could clang-format (and possibly the rest of LLVM?) switch to `py` on newer Windows OSs?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtkk1vozAQhn8NXEZBYAcIBw792GordbWVutqeDUyIN47N-qMp--t3TJsmlcoBbDyeed53pjPD3D7vUIPUzgulpB7BaHiWejBHB0UBQg9gg9bxJKnyXgk9rrbGHoSnbcJu4B5G48HvELZGKXNccgQ_BZ_wqyS_TfL3N9CT8G-XKWC1ekHrpNEXIayeZr8zmtMKpANN6S32ZtTyHw4gHEERsEerhQJjAV_f1705HAiYqM7pzIRWdAphsma04hAvdML3O9hKhdkl4En2YNDFXAhH6XfwuNAAj2K78CZVCzolNvJgmqMRX0qd5q8EnvJlTVbwy1tXpAz-Btnv4WjsXlgTFjFwT068IPQWhY8OUI9wRc3CRcMbxOJY1i1tWbomhoFiJfEaOMzwePXr-xeUN_FfefMunVbTnOEr5WRlwj5FPxlSLqJ80n3mIxc04XnQiLEgNRa2wQeLEBxJj_y9CWqAT41P2CZCTsY52al5MdWi82C28PDw-0fC7xLWgKMOUKtIwsnpOJ8aj2g_pvTnk6PoFNuiqtZsU_OmToeWDw1vROqlV9h-Kn0x4MqYvVuQzx7GGlYQj4169UfhNFjV7ryfXLSMEd7dSOMRuoxGhTZKvZw-K5q1P9h72krnApIJd-UmZ3m6a5uu6ov1UOYFbqqyZ01e9E1e5XW97qpq4KkSHSrXJuV1whgphSUFrZPyNpUtyxnLG1YX65wXdcZ63nS8bKqaC7amoHWOByFVFjkyY8fUtgtSF0ZHh0o6786HguwfqXNLOcovAnlgWz4i7ot1upRuF_T_8zBQVg">