Repository: pypa/virtualenv (Python)

Issue:
Latest release no longer respects PATH on Windows
```python
import logging
import os
import shutil
from importlib import metadata

from virtualenv.discovery.builtin import propose_interpreters
from virtualenv.discovery.py_spec import PythonSpec

HERE = os.path.dirname(os.path.abspath(__file__))
LOGGER = logging.getLogger()
LOGGER.setLevel(logging.DEBUG)

def main():
    dist_path = os.path.join(HERE, 'cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only')
    env = dict(os.environ)
    path = env.pop('PATH', os.defpath)
    env['PATH'] = f'{dist_path}{os.pathsep}{path}'
    binary_path = shutil.which('python', path=env['PATH'])
    virtualenv_version = metadata.version('virtualenv')

    print(f'Virtualenv version: {virtualenv_version}')
    print(f'Python binary: {binary_path}')

    for proposed_version in ('3',):
        print(f'{proposed_version}:')
        for data in propose_interpreters(PythonSpec.from_string_spec(proposed_version), (), None, env):
            interpreter = data[0]
            version = '.'.join(map(str, interpreter.version_info[:3]))
            print(f'    {version} -> {interpreter.executable}')

if __name__ == '__main__':
    main()
```

```
❯ python rf\v.py
C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\python.EXE
3:
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
    3.13.0 -> C:\Users\ofek\AppData\Local\Programs\Python\Python313\python.exe
    3.12.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
    3.8.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe
    3.7.5 -> C:\Users\ofek\AppData\Local\Programs\Python\Python37\python.exe
    3.10.11 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.10.exe
    3.11.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.11.exe
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.7.exe
    3.8.10 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.8.exe
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.exe
```

@flying-sheep likely related to https://github.com/pypa/virtualenv/pull/2709


Discussion:
I can’t see why that would be. The generated regex should be as follows and therefore match the file:

```py
re.compile(
	r"(?P<impl>python)(?P<v>3(\.\d+(\.\d+)?)?)\.exe$",
	re.IGNORECASE,
)
```

can you enable debug logging so we see what’s going on?
I just updated the script in the OP.

Version 20.25.3:

<details>

❯ python rf\v.py
Virtualenv version: 20.25.3
Python binary: C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\python.EXE
3:
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python313\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' qocpjIc9WMHg6BByJOFHI2s1l6BwDq4M uxGLtq2yH7pXaNCKpenrRoCCmqPNrMJ0
    3.13.0 -> C:\Users\ofek\AppData\Local\Programs\Python\Python313\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' sNRzj0Q7jx2850A2zeDlKdSun1Jm6iuM ByOkgKP0lXIUgSeWLJF7ktvNJ678L1nP
    3.12.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' RhTnrpQoSpqaoCCqHAcpGQtXiIaqK8iP IuHQUjnXp67iAGeROxYUWrVKy0XzUsK2
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' npmPtuT9Mg9x8MWE0kIgpnoA1pHWXkKM KP7TxZEAkC7UPkvdmSbejZClZaQqJsY6
    3.8.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' yKjIovDb5Zul8EunupLraf6R8MUX8biQ tVOf9fNpZuB3zakVfoAyorQMKgWo41im
    3.7.5 -> C:\Users\ofek\AppData\Local\Programs\Python\Python37\python.exe
DEBUG:root:discover PATH[0]=C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' jGAON6S84WjsWoH56P9YUpffddtNmKEE h3Xu7lzVZgMYJx1dhxu076Lnk8R0Zrgv
    3.11.9 -> C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\python.exe
DEBUG:root:discover PATH[1]=C:\Program Files (x86)\Common Files\Oracle\Java\javapath
DEBUG:root:discover PATH[2]=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64
DEBUG:root:discover PATH[3]=C:\ProgramData\Oracle\Java\javapath
DEBUG:root:discover PATH[4]=C:\Windows\System32
DEBUG:root:discover PATH[5]=C:\Windows
DEBUG:root:discover PATH[6]=C:\Windows\System32\wbem
DEBUG:root:discover PATH[7]=C:\Windows\System32\WindowsPowerShell\v1.0\
DEBUG:root:discover PATH[8]=C:\Windows\System32\OpenSSH\
DEBUG:root:discover PATH[9]=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
DEBUG:root:discover PATH[10]=C:\Windows\System32
DEBUG:root:discover PATH[11]=C:\Windows
DEBUG:root:discover PATH[12]=C:\Windows\System32\wbem
DEBUG:root:discover PATH[13]=C:\Windows\System32\WindowsPowerShell\v1.0\
DEBUG:root:discover PATH[14]=C:\Windows\System32\OpenSSH\
DEBUG:root:discover PATH[15]=C:\Program Files (x86)\GnuPG\bin
DEBUG:root:discover PATH[16]=C:\ProgramData\chocolatey\bin
DEBUG:root:discover PATH[17]=C:\Program Files\dotnet\
DEBUG:root:discover PATH[18]=C:\Program Files\WezTerm
DEBUG:root:discover PATH[19]=C:\Windows\System32
DEBUG:root:discover PATH[20]=C:\Windows
DEBUG:root:discover PATH[21]=C:\Windows\System32\wbem
DEBUG:root:discover PATH[22]=C:\Windows\System32\WindowsPowerShell\v1.0\
DEBUG:root:discover PATH[23]=C:\Windows\System32\OpenSSH\
DEBUG:root:discover PATH[24]=C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\bin
DEBUG:root:discover PATH[25]=C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\jre\bin
DEBUG:root:discover PATH[26]=C:\Program Files\Calibre2\
DEBUG:root:discover PATH[27]=C:\Program Files\nodejs\
DEBUG:root:discover PATH[28]=C:\Program Files\Git\cmd
DEBUG:root:discover PATH[29]=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[30]=C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[31]=C:\Program Files\CMake\bin
DEBUG:root:discover PATH[32]=C:\Strawberry\c\bin
DEBUG:root:discover PATH[33]=C:\Strawberry\perl\site\bin
DEBUG:root:discover PATH[34]=C:\Strawberry\perl\bin
DEBUG:root:discover PATH[35]=C:\JupyterLab
DEBUG:root:discover PATH[36]=C:\Program Files (x86)\Pulumi\
DEBUG:root:discover PATH[37]=C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
DEBUG:root:discover PATH[38]=C:\Program Files\RedHat\Podman\
DEBUG:root:discover PATH[39]=C:\Program Files\Go\bin
DEBUG:root:discover PATH[40]=C:\Program Files\GTK3-Runtime Win64\bin
DEBUG:root:discover PATH[41]=C:\Program Files\PowerShell\7\
DEBUG:root:discover PATH[42]=C:\Program Files\PowerShell\7-preview\preview
DEBUG:root:discover PATH[43]=C:\Program Files\Docker\Docker\resources\bin
DEBUG:root:discover PATH[44]=C:\Users\ofek\AppData\Local\Programs\Python\Python311\Scripts\
DEBUG:root:discover PATH[45]=C:\Users\ofek\AppData\Local\Programs\Python\Python311
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
DEBUG:root:discover PATH[46]=C:\Users\ofek\AppData\Local\Programs\Python\Python312\Scripts\
DEBUG:root:discover PATH[47]=C:\Users\ofek\AppData\Local\Programs\Python\Python312\
    3.12.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe
DEBUG:root:discover PATH[48]=C:\Users\ofek\AppData\Local\Programs\Python\Launcher\
DEBUG:root:discover PATH[49]=C:\Program Files\Docker\Docker\Resources\bin
DEBUG:root:discover PATH[50]=C:\Windows\system32
DEBUG:root:discover PATH[51]=C:\Windows
DEBUG:root:discover PATH[52]=C:\Windows\System32\Wbem
DEBUG:root:discover PATH[53]=C:\Program Files\PowerShell\7-preview\preview
DEBUG:root:discover PATH[54]=C:\Windows\System32\WindowsPowerShell\v1.0
DEBUG:root:discover PATH[55]=C:\Windows\System32\OpenSSH
DEBUG:root:discover PATH[56]=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
DEBUG:root:discover PATH[57]=C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
DEBUG:root:discover PATH[58]=C:\Program Files\Git\cmd
DEBUG:root:discover PATH[59]=C:\Program Files (x86)\GnuPG\bin
DEBUG:root:discover PATH[60]=C:\Program Files\nodejs
DEBUG:root:discover PATH[61]=C:\ProgramData\chocolatey\bin
DEBUG:root:discover PATH[62]=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[63]=C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[64]=C:\Users\ofek\AppData\Local\Programs\Python\Python38
    3.8.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe
DEBUG:root:discover PATH[65]=C:\Users\ofek\AppData\Local\Programs\Python\Python39\Scripts
DEBUG:root:discover PATH[66]=C:\Users\ofek\AppData\Local\Programs\Python\Python39
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
DEBUG:root:discover PATH[67]=C:\Users\ofek\AppData\Local\Programs\Python\Launcher
DEBUG:root:discover PATH[68]=C:\Users\ofek\scoop\shims
DEBUG:root:discover PATH[69]=C:\Ruby26-x64\bin
DEBUG:root:discover PATH[70]=C:\Program Files\ConEmu
DEBUG:root:discover PATH[71]=C:\Users\ofek\.cargo\bin
DEBUG:root:discover PATH[72]=C:\Users\ofek\AppData\Local\Microsoft\WindowsApps
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' aTUbw5GxTkzDDQWFSfaZzfKVDzgTEmAA biGXMdE0SO36ly2rfYyMqo4iGoHrnEH5
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' O8zsKxVIOeXjI1YCbKdwlRrrFLZjLzzX MJzr4s98Y5J9vKdqYvFlOrxRhi9SyBb6
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' Aeg3Slpbd2TIldJVzZDC887EyrFkorVm kJdw6eoQXJPS6kdUDAKB9h2cxnJvWjj6
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python.exe
DEBUG:root:discover PATH[73]=C:\Users\ofek\AppData\Local\Programs\Microsoft VS Code\bin
DEBUG:root:discover PATH[74]=C:\Users\ofek\AppData\Local\GitHubDesktop\bin
DEBUG:root:discover PATH[75]=C:\Users\ofek\go\bin
DEBUG:root:discover PATH[76]=C:\Users\ofek\bin
DEBUG:root:discover PATH[77]=C:\Users\ofek\AppData\Local\Programs\Python\Python27
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python27\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' KVjM8cR9fZ1OsHWATfLZknOW9DgNHiRk t7h8fysbp59mkkv80KLqWyvIihKlLpCE
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python27\python.exe with code 1 err: '  File "C:\\Users\\ofek\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\virtualenv\\discovery\\py_info.py", line 24\n    return list(OrderedDict.fromkeys(["", *os.environ.get("PATHEXT", "").lower().split(os.pathsep)]))\n                                          ^\nSyntaxError: invalid syntax\n'
DEBUG:root:discover PATH[78]=C:\Program Files\Java\jdk-13.0.1\bin
DEBUG:root:discover PATH[79]=C:\Users\ofek\maven\bin
DEBUG:root:discover PATH[80]=C:\Users\ofek\.local\bin
DEBUG:root:discover PATH[81]=C:\Users\ofek\AppData\Roaming\npm
DEBUG:root:discover PATH[82]=C:\Users\ofek\AppData\Local\Programs\oh-my-posh\bin
DEBUG:root:discover PATH[83]=C:\Users\ofek\AppData\Local\Microsoft\WindowsApps
DEBUG:root:discover PATH[84]=C:\Users\ofek\AppData\Local\Microsoft\WinGet\Packages\junegunn.fzf_Microsoft.Winget.Source_8wekyb3d8bbwe
DEBUG:root:discover PATH[85]=C:\Users\ofek\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin
DEBUG:root:discover PATH[86]=C:\Users\ofek\go\bin
DEBUG:root:discover PATH[87]=C:\Users\ofek\.deno\bin
</details>

Version 20.26.0:

<details>

Virtualenv version: 20.26.0
Python binary: C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\python.EXE
3:
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python313\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' gCIPtI11cTLtF9S4cG38T2DzDAUD2wO8 VRYDYaL2G9ag6B1KZjZMB3czUlpvWQXy
    3.13.0 -> C:\Users\ofek\AppData\Local\Programs\Python\Python313\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' VLqIOye0AhHK0z6PDRg07bTCtVlQeigW 9zeOvbez7izJz8psRkGDT2MxLkVbFPHj
    3.12.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python312\python.exe
    3.11.7 -> C:\Users\ofek\AppData\Local\Programs\Python\Python311\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' ZssOsVO9YM3eeVABTWYpuTv3tfPq2mt3 XBmGJYcXDKUiZVfmFxAA8aFpVeB32EJa
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
    3.9.4 -> C:\Users\ofek\AppData\Local\Programs\Python\Python39\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' j4XbtBeb1ItVnIynkc3UxpvlLn3X8DUv itqFcSrB4T7Uu2qtqO3nWI9FGoRDxoyI
    3.8.1 -> C:\Users\ofek\AppData\Local\Programs\Python\Python38\python.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python37\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' CCpLnmfgQKivYQ3K8PysW8lJo9lJUu77 NCP0CqrKCqmistcUJMn2MyzFoskAeazs
    3.7.5 -> C:\Users\ofek\AppData\Local\Programs\Python\Python37\python.exe
DEBUG:root:discover PATH[0]=C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' CwGEXZQG8OtXZckwQ4gEj8kdyK6U2gex ykfqH6RJdoz7Z6Uvqgz2d1ZrroT2wERZ
INFO:root:failed to query C:\Users\ofek\Desktop\rf\cpython-3.11.9+20240415-x86_64-pc-windows-msvc-install_only\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[1]=C:\Program Files (x86)\Common Files\Oracle\Java\javapath
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\Common Files\Oracle\Java\javapath\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' H6ohdDnP1dzko4V8mHiaC81v5Z1jA2g5 WsVHHc6JXC6kzaf5qUNvNPi4KzwpOqLp
INFO:root:failed to query C:\Program Files (x86)\Common Files\Oracle\Java\javapath\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[2]=C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' KfG5aFlD8RCDLP6ejQl1ISmLIegiS4xP DvUjCvUkoVhji8o6yP0Sls7w4WtRCFxW
INFO:root:failed to query C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[3]=C:\ProgramData\Oracle\Java\javapath
DEBUG:root:get interpreter info via cmd: 'C:\ProgramData\Oracle\Java\javapath\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' o1nb9MlsLUjT8a8Hc8Fp0EWjOb4xo9nm VQuFeRbq5hS2a2KXUTfss3O5zlYzCjxo
INFO:root:failed to query C:\ProgramData\Oracle\Java\javapath\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[4]=C:\Windows\System32
DEBUG:root:get interpreter info via cmd: 'C:\Windows\System32\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' SmPMGfscfQjrIqA1zvLUa22Mzu2C3eb3 qiATp89N9Lslc7J78pBaXfgDz6TLropz
INFO:root:failed to query C:\Windows\System32\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[5]=C:\Windows
DEBUG:root:get interpreter info via cmd: 'C:\Windows\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' kXDjdevFq2xkbPohvZ4rlaPdarCYc1wu VMqE8xPhvlHOlYrexHU2IPsWFIbW7drL
INFO:root:failed to query C:\Windows\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[6]=C:\Windows\System32\wbem
DEBUG:root:get interpreter info via cmd: 'C:\Windows\System32\wbem\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' jvfzuSSn7X92NYAOO0yB91Yx2f7CA6KP Oy6NCVbi2a2JnQnHOqOlj8GMK1AemlWd
INFO:root:failed to query C:\Windows\System32\wbem\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[7]=C:\Windows\System32\WindowsPowerShell\v1.0
DEBUG:root:get interpreter info via cmd: 'C:\Windows\System32\WindowsPowerShell\v1.0\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 1JKQQRtNVZW1Yg7u8D9iLFTS7A6rDybJ ayBb6UVhKAEf5CPTUZA3l39vg9PkCIBt
INFO:root:failed to query C:\Windows\System32\WindowsPowerShell\v1.0\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[8]=C:\Windows\System32\OpenSSH
DEBUG:root:get interpreter info via cmd: 'C:\Windows\System32\OpenSSH\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' FhZqmCvsygQWJAiesNCXQT0m1SeGNdbW 7AWqkKc3Q9DFZi3P1VpdmaYodDT1mxRK
INFO:root:failed to query C:\Windows\System32\OpenSSH\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[9]=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' vNQkEvAYWaGpbyvyQxXNiemfqDN9PyGb 6uA32zwszbkdoUxO2zSWbh7pqfVvmLkz
INFO:root:failed to query C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[10]=C:\Windows\System32
DEBUG:root:discover PATH[11]=C:\Windows
DEBUG:root:discover PATH[12]=C:\Windows\System32\wbem
DEBUG:root:discover PATH[13]=C:\Windows\System32\WindowsPowerShell\v1.0
DEBUG:root:discover PATH[14]=C:\Windows\System32\OpenSSH
DEBUG:root:discover PATH[15]=C:\Program Files (x86)\GnuPG\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\GnuPG\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' UZnE8F3MaTQ3ZMvS3eZwMJZ69q3EcZFc YFRpP33CW7ZraVDUr3BlF1JShoM3L0st
INFO:root:failed to query C:\Program Files (x86)\GnuPG\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[16]=C:\ProgramData\chocolatey\bin
DEBUG:root:get interpreter info via cmd: 'C:\ProgramData\chocolatey\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' m0xNRoY6s1wAwt5kW0tedHNL6RIb5XrJ EXR147uMkGimD6lWG0LZaKEWBZEoNb0p
INFO:root:failed to query C:\ProgramData\chocolatey\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[17]=C:\Program Files\dotnet
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\dotnet\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' yrVs5WbsCslXOCB831NkDCJf3UCPTy4W p5EzDUbeBbVSnTUmIzzlf2fh7L04SREW
INFO:root:failed to query C:\Program Files\dotnet\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[18]=C:\Program Files\WezTerm
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\WezTerm\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' TeUuDW7Bf35Zy17sWg5AC5DmyRwcjAaO ZEcsQYFDAzygh6NNPfhOhqPkd4rrMi7m
INFO:root:failed to query C:\Program Files\WezTerm\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[19]=C:\Windows\System32
DEBUG:root:discover PATH[20]=C:\Windows
DEBUG:root:discover PATH[21]=C:\Windows\System32\wbem
DEBUG:root:discover PATH[22]=C:\Windows\System32\WindowsPowerShell\v1.0
DEBUG:root:discover PATH[23]=C:\Windows\System32\OpenSSH
DEBUG:root:discover PATH[24]=C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' lnAbw0UEXNiPaqdXHrx6wLy168bVN76f CgH000Fidn7mCWvzFBpq814noZI1HCdd
INFO:root:failed to query C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[25]=C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\jre\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\jre\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' XHFff4tR0HzM91NrDyTk37ktCT7ybhYx 6FGZ6MuoPe8pjr3TLcoaJ8EuqRYxQpfe
INFO:root:failed to query C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.282-1\jre\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[26]=C:\Program Files\Calibre2
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Calibre2\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 66Sr41RvYJnR7RD6WWVnYPU2yk0MJfgd LjBdGNNUDeW2UUeK7mtgLf6cQ6ODNZse
INFO:root:failed to query C:\Program Files\Calibre2\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[27]=C:\Program Files\nodejs
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\nodejs\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' irIPrDSD872uzgjEryrJlWZyI1pmmE10 Nmh1uE6gRoi2GeHqK7xdZZ4yStoZKdui
INFO:root:failed to query C:\Program Files\nodejs\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[28]=C:\Program Files\Git\cmd
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Git\cmd\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' X20Q6djalSQR9SMeO66OLX03UUBBrEAM q3CcpZmMttfggiUZTGilPRSUBxXYh8Ri
INFO:root:failed to query C:\Program Files\Git\cmd\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[29]=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' GOkKv6IgxtN9iG3kcEkVCQKU1zGEvyBO 0yyoBaRZfxc1gR3VEqsbNxYzrtg5yUsC
INFO:root:failed to query C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[30]=C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' UiGjxhbGnPYswKcr1kWzpWHcxditStnt zH5yg5yvfNjvOOpDWYiOytwomzpWqsqA
INFO:root:failed to query C:\Program Files\Intel\Intel(R) Management Engine Components\DAL\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[31]=C:\Program Files\CMake\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\CMake\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' aEmWGiE4ydUkrXOnXW7TQZOvM7GVxmm1 5A9MslVAHj2fkwsfZkuWMAYbjPkcXoYf
INFO:root:failed to query C:\Program Files\CMake\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[32]=C:\Strawberry\c\bin
DEBUG:root:get interpreter info via cmd: 'C:\Strawberry\c\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' Jn2XCS1bYHLPiMDkUjWBYPg5uwEHESJh DcCrB2u6wOTFKmhCJo38i3xHuBqSYVSm
INFO:root:failed to query C:\Strawberry\c\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[33]=C:\Strawberry\perl\site\bin
DEBUG:root:get interpreter info via cmd: 'C:\Strawberry\perl\site\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' xqIDk4Deqxx2DsfvSH87LIvgaPUNJ8fF YdSDyceiAwWBUW4wfP7KzrLSoO7rDH4n
INFO:root:failed to query C:\Strawberry\perl\site\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[34]=C:\Strawberry\perl\bin
DEBUG:root:get interpreter info via cmd: 'C:\Strawberry\perl\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' YPDr6ia8fUDeAwSX5VZn67tUZ2SgtcNS MagUXYbfmccSswYTI3yz0Vfo9gK16PCD
INFO:root:failed to query C:\Strawberry\perl\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[35]=C:\JupyterLab
DEBUG:root:get interpreter info via cmd: 'C:\JupyterLab\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' jufL3zPT9OzqsTRIiEzevIgJj8UrlFY4 ldPEtMcoBBBkghwsapfDZhu4ne6NAAvO
INFO:root:failed to query C:\JupyterLab\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[36]=C:\Program Files (x86)\Pulumi
DEBUG:root:get interpreter info via cmd: 'C:\Program Files (x86)\Pulumi\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' A1U6LnPPxAqdPEiJzqKvrFdajrMgLku4 4E9Tvq5nxx4mqjkJAuowBjp7PQLeR6hK
INFO:root:failed to query C:\Program Files (x86)\Pulumi\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[37]=C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' Z9wYh47PaU1UFDgGW5DcsMcTyYzpPSMh fxFOgA1D5zqjbOIjiStVNLOU6dDwRp0H
INFO:root:failed to query C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[38]=C:\Program Files\RedHat\Podman
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\RedHat\Podman\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 67m28XCtveWodAuiLdBDyM1u2lIg0N1D JjVtZmDGNpDF5lWHL07sO9ewTTt0qGWa
INFO:root:failed to query C:\Program Files\RedHat\Podman\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[39]=C:\Program Files\Go\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Go\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' o3OS1cfIaPKZKf0Z3zdVhC9r2hB8BJ2Q iAVyukfdAJXVNe6oRBjDeyLLD8UXDmUF
INFO:root:failed to query C:\Program Files\Go\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[40]=C:\Program Files\GTK3-Runtime Win64\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\GTK3-Runtime Win64\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' VjOGreR2e1Th6qd85GWD9ku5U63yFgqa BfX6dP8UkN1zC5viGKLmAGvWcrHrVDQB
INFO:root:failed to query C:\Program Files\GTK3-Runtime Win64\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[41]=C:\Program Files\PowerShell\7
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\PowerShell\7\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' PXXTRAaVRSnpP6J3iQOntLCnhGxOWgDR bdcUkApkArmdiEUHEUc31dzJKtXjrcwi
INFO:root:failed to query C:\Program Files\PowerShell\7\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[42]=C:\Program Files\PowerShell\7-preview\preview
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\PowerShell\7-preview\preview\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' zFAq5LkGbyJioaUXrRxaMFkXBONhpaNx MAt8JeF4gxFf9KXhB0wxo3sM6GtnHnFD
INFO:root:failed to query C:\Program Files\PowerShell\7-preview\preview\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[43]=C:\Program Files\Docker\Docker\resources\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Docker\Docker\resources\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' P1dr7enX8zfccrcxiafLkw8dmmcjDrOz XngaPz7tLC9jb9fo1P8yEY59dCMlXpKt
INFO:root:failed to query C:\Program Files\Docker\Docker\resources\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[44]=C:\Users\ofek\AppData\Local\Programs\Python\Python311\Scripts
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Scripts\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' S8fk0VVACbZoG54bcQAysxPz8Qm36HC1 9HYSfoD1TowvHfQxuNP5xPwLEK8QbXXM
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python311\Scripts\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[45]=C:\Users\ofek\AppData\Local\Programs\Python\Python311
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' fYeer3tt3a14lWKV8Axr12zHB4gMFdeS BZf9NavwMg0Q8rV3Pqpx3VYukVfJjQte
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python311\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[46]=C:\Users\ofek\AppData\Local\Programs\Python\Python312\Scripts
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python312\Scripts\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' gONlopwcbDj45uKehakhihUAy8SueLXT 21U6Myd60lFDYk2RxqvzQV5Ab06FwM7N
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python312\Scripts\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[47]=C:\Users\ofek\AppData\Local\Programs\Python\Python312
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python312\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 6JljIhhC58mnPpyC8koZlNlDiJL3Bj1y FP4JQCaOwDFUx1i4GqKWJVo8xL1rZyyE
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python312\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[48]=C:\Users\ofek\AppData\Local\Programs\Python\Launcher
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Launcher\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' neUF4CLbBDCxEyC1vrEZ3VjEBOBMhhwW jgLXiOmHFne91Jtz5kdldkG2YDM9btMi
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Launcher\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[49]=C:\Program Files\Docker\Docker\Resources\bin
DEBUG:root:discover PATH[50]=C:\Windows\system32
DEBUG:root:discover PATH[51]=C:\Windows
DEBUG:root:discover PATH[52]=C:\Windows\System32\Wbem
DEBUG:root:discover PATH[53]=C:\Program Files\PowerShell\7-preview\preview
DEBUG:root:discover PATH[54]=C:\Windows\System32\WindowsPowerShell\v1.0
DEBUG:root:discover PATH[55]=C:\Windows\System32\OpenSSH
DEBUG:root:discover PATH[56]=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
DEBUG:root:discover PATH[57]=C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
DEBUG:root:discover PATH[58]=C:\Program Files\Git\cmd
DEBUG:root:discover PATH[59]=C:\Program Files (x86)\GnuPG\bin
DEBUG:root:discover PATH[60]=C:\Program Files\nodejs
DEBUG:root:discover PATH[61]=C:\ProgramData\chocolatey\bin
DEBUG:root:discover PATH[62]=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[63]=C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
DEBUG:root:discover PATH[64]=C:\Users\ofek\AppData\Local\Programs\Python\Python38
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python38\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' kIk0EgqL4NEHmNckQOBKwRxiP9uElznd 8zrlBtMCApi2V9qERuGsk9YMjZZkTdDU
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python38\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[65]=C:\Users\ofek\AppData\Local\Programs\Python\Python39\Scripts
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python39\Scripts\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' KYypwXxDMshEiJ4eW1QMFmZZevXsM62u FKSu2XMInAvsS0ARo1IAppw3YpvVTYz0
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python39\Scripts\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[66]=C:\Users\ofek\AppData\Local\Programs\Python\Python39
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python39\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 9YKwdWZTJaMyupB1sgCLxBYhsGXDnv4V s7GvyZ30Bdt7Bp0vvI4pFZpzzHWmju9H
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python39\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[67]=C:\Users\ofek\AppData\Local\Programs\Python\Launcher
DEBUG:root:discover PATH[68]=C:\Users\ofek\scoop\shims
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\scoop\shims\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' velICL9pCQTe3QSwoAAp56Nc62SwG1H3 pJ3aplzDmfuB2M9MqETJ06TJnurrgNDb
INFO:root:failed to query C:\Users\ofek\scoop\shims\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[69]=C:\Ruby26-x64\bin
DEBUG:root:get interpreter info via cmd: 'C:\Ruby26-x64\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' zYcLCVbOPM3TsMBRQ0KU6ssYkxmAIdH9 W7XBRYr88kmaA8mqzvIeRYBVJLu4w6yK
INFO:root:failed to query C:\Ruby26-x64\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[70]=C:\Program Files\ConEmu
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\ConEmu\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' X7eQEiEIFcFcopCALGveuVWJYf5GOmoq g6muAEHrEb06ISh1h4rHLOJ98KVJ3Kc1
INFO:root:failed to query C:\Program Files\ConEmu\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[71]=C:\Users\ofek\.cargo\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\.cargo\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' UhBL3ykn7PdKLp2u4AYMCI1ZezRq7jTl g4wo5CEqsYQNNrf3TfYtuE0B8hGZKbaS
INFO:root:failed to query C:\Users\ofek\.cargo\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[72]=C:\Users\ofek\AppData\Local\Microsoft\WindowsApps
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' a9aYCkGxDIWVOcbf4BkzT9jFMs0J1nVY ektjBGXVAditOB5wLb3AUeZlJ9WV2MrZ
INFO:root:failed to query C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.10.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' C44MgciyHebiGzu08LZIACgq1hhf4YI1 uMrJzKxKjNVhVE7dkHSwC28TsssWO6jc
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' YFcURpXnaM3vGcUjkfcEhp8qbmQXH2Ti TPkrC0gJnYGfkbIpw6Q4XPh1EG5u6QA1
    3.10.11 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.10.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.11.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' rh6V3sHnfTMP9T1NBdJnOFMzbFBf2nbh 9EQmArWwossJhfSxL0NuAOlbSdUkZuEB
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' UUrvN8qGbSExu45ITSUl9AIDByCFXcxy 1pEjCl6NogL5bmboWDoTc3wqSx6gE2bw
    3.11.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.11.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.7.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' NUQzidgHky3DugQQpVRuzU0xLnJzuhT1 Ni7CRaaCsUW5Kdmls6DQn04exkzPElie
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' YjvysFKvkffxb13xecVh4plUuzWaZFxf BGeHia3Qe8aSu5RvfX8K2cmJTnNcvh0R
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.7.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.8.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' H5GALhAlxaYpwrSoSt8ytIrZU3Dc1Qdz IIxGOFGvdxRwhMHv1CNB3Bs3Z5xgRBGw
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' nCvahNAHsz2HFhgonIbjp71gVCtcGaoz Z0DRfmDTyudRrdqxhLmw5AFYwoVfZwr4
    3.8.10 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.8.exe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 43idxXIwyMjT0UgkNccmZnDY42ZCkRO1 EFIXlQxg3cCkRT0F1nlYtle5GlTc4wCV
    3.7.9 -> C:\Users\ofek\AppData\Local\Microsoft\WindowsApps\python3.exe
DEBUG:root:discover PATH[73]=C:\Users\ofek\AppData\Local\Programs\Microsoft VS Code\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Microsoft VS Code\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' 8d5Jr6VDEheGaLwv3tMwI6WhksbuLq9E IopSTXAeRz1kznbmtG4xYSWMnVvwWUmP
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Microsoft VS Code\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[74]=C:\Users\ofek\AppData\Local\GitHubDesktop\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\GitHubDesktop\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' y7ckDbLuRL8OcfW58Xxy6paDorri0ZyM MQdV7b2VT9BtEkcaEnGKKk0V4nyEsdzY
INFO:root:failed to query C:\Users\ofek\AppData\Local\GitHubDesktop\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[75]=C:\Users\ofek\go\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\go\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' gRPlmc4IIpEHAFgN6XKwX1vDSbmn07ny PEQNKw5Pscg7HIxTtkYbGhpL3o03ofVG
INFO:root:failed to query C:\Users\ofek\go\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[76]=C:\Users\ofek\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' X1Tct7He9p1dVmZLuYzWjN6A4IB2KbW4 4rZm1a31irtN9B7iLnw9lZnGecj8yR9d
INFO:root:failed to query C:\Users\ofek\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[77]=C:\Users\ofek\AppData\Local\Programs\Python\Python27
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\Python\Python27\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' oflJmYyUpeKiDrSitlF1uEX0tiA6DFIN BlLixEcb9zvCUCLMHzSxH0GdNM2OMc06
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\Python\Python27\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[78]=C:\Program Files\Java\jdk-13.0.1\bin
DEBUG:root:get interpreter info via cmd: 'C:\Program Files\Java\jdk-13.0.1\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' qOCRy6aWIvWRrP6R1bf9J72tD01THj4h yL29uZs9zyIH12VKGS4Ktte02WyCQgTR
INFO:root:failed to query C:\Program Files\Java\jdk-13.0.1\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[79]=C:\Users\ofek\maven\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\maven\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' NWq4Z8XnEq3cF2lZ7RS2FuWKEQMVb1Ry uSYNneXiyLQv3j5y16MDDncLfSXyXMPi
INFO:root:failed to query C:\Users\ofek\maven\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[80]=C:\Users\ofek\.local\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\.local\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' Y99CZmj3vxsy770amMAm33YfXkM8Cmqb hH50g09K6pAmTdBGkFn0C6UoVifWGrV6
INFO:root:failed to query C:\Users\ofek\.local\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[81]=C:\Users\ofek\AppData\Roaming\npm
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Roaming\npm\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' X2UzzirtkxRKq0CMEdDWfJYTPUDhGXHB mtsDnVYloTPyWOJS9ljbDdCZU1e6pH3B
INFO:root:failed to query C:\Users\ofek\AppData\Roaming\npm\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[82]=C:\Users\ofek\AppData\Local\Programs\oh-my-posh\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Programs\oh-my-posh\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' Zh8ErvKU3AgGSakyjuFG4wnshmnFbEmG OZOZqhJcdNNfpwdTgys2jCIHnDGrbVlZ
INFO:root:failed to query C:\Users\ofek\AppData\Local\Programs\oh-my-posh\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[83]=C:\Users\ofek\AppData\Local\Microsoft\WindowsApps
DEBUG:root:discover PATH[84]=C:\Users\ofek\AppData\Local\Microsoft\WinGet\Packages\junegunn.fzf_Microsoft.Winget.Source_8wekyb3d8bbwe
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Microsoft\WinGet\Packages\junegunn.fzf_Microsoft.Winget.Source_8wekyb3d8bbwe\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' ujuae43I8WobaoN2gJEY1OYaHEB402d1 QZXqLNm3ldh5bIBL8gqnqdrMyNrsDMeq
INFO:root:failed to query C:\Users\ofek\AppData\Local\Microsoft\WinGet\Packages\junegunn.fzf_Microsoft.Winget.Source_8wekyb3d8bbwe\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[85]=C:\Users\ofek\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' nGk5NwxzXE5hQ0dCxGi6qOhduE4mmRxX zVZiIOsmbQf2UHZVvYlJMpB3ZUzi8ova
INFO:root:failed to query C:\Users\ofek\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\3.exe with code 2 err: 'The system cannot find the file specified'
DEBUG:root:discover PATH[86]=C:\Users\ofek\go\bin
DEBUG:root:discover PATH[87]=C:\Users\ofek\.deno\bin
DEBUG:root:get interpreter info via cmd: 'C:\Users\ofek\.deno\bin\3.exe' 'C:\Users\ofek\AppData\Local\Programs\Python\Python311\Lib\site-packages\virtualenv\discovery\py_info.py' tPpWLvxCsB3tRFy5Zv1LmZ77UEfHo1AC 26B8pdHTxacARInw44nixYSkqjZjfdx0
INFO:root:failed to query C:\Users\ofek\.deno\bin\3.exe with code 2 err: 'The system cannot find the file specified'
</details>
Fixed by https://github.com/pypa/virtualenv/pull/2712



Patch:
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index cd47eb571..0fb1b5fc8 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -28,11 +28,9 @@ jobs:
           - "3.10"
           - "3.9"
           - "3.8"
-          - "3.7"
           - pypy-3.10
           - pypy-3.9
           - pypy-3.8
-          - pypy-3.7
         os:
           - ubuntu-latest
           - macos-latest
@@ -42,6 +40,12 @@ jobs:
           - { os: macos-latest, py: "brew@3.10" }
           - { os: macos-latest, py: "brew@3.9" }
           - { os: macos-latest, py: "brew@3.8" }
+          - { os: ubuntu-latest, py: "3.7" }
+          - { os: windows-latest, py: "3.7" }
+          - { os: macos-12, py: "3.7" }
+          - { os: ubuntu-latest, py: "pypy-3.7" }
+          - { os: windows-latest, py: "pypy-3.7" }
+          - { os: macos-12, py: "pypy-3.7" }
     steps:
       - uses: taiki-e/install-action@cargo-binstall
       - name: Install OS dependencies
diff --git a/docs/changelog/2712.bugfix.rst b/docs/changelog/2712.bugfix.rst
new file mode 100644
index 000000000..fee543691
--- /dev/null
+++ b/docs/changelog/2712.bugfix.rst
@@ -0,0 +1,1 @@
+fix PATH-based Python discovery on Windows - by :user:`ofek`.
diff --git a/src/virtualenv/discovery/builtin.py b/src/virtualenv/discovery/builtin.py
index 51de52903..2a10f8292 100644
--- a/src/virtualenv/discovery/builtin.py
+++ b/src/virtualenv/discovery/builtin.py
@@ -6,7 +6,7 @@
 from pathlib import Path
 from typing import TYPE_CHECKING, Callable
 
-from virtualenv.info import IS_WIN
+from virtualenv.info import IS_WIN, fs_path_id
 
 from .discover import Discover
 from .py_info import PythonInfo
@@ -84,7 +84,7 @@ def get_interpreter(
     return None
 
 
-def propose_interpreters(  # noqa: C901, PLR0912
+def propose_interpreters(  # noqa: C901, PLR0912, PLR0915
     spec: PythonSpec,
     try_first_with: Iterable[str],
     app_data: AppData | None = None,
@@ -92,6 +92,7 @@ def propose_interpreters(  # noqa: C901, PLR0912
 ) -> Generator[tuple[PythonInfo, bool], None, None]:
     # 0. try with first
     env = os.environ if env is None else env
+    tested_exes: set[str] = set()
     for py_exe in try_first_with:
         path = os.path.abspath(py_exe)
         try:
@@ -99,7 +100,12 @@ def propose_interpreters(  # noqa: C901, PLR0912
         except OSError:
             pass
         else:
-            yield PythonInfo.from_exe(os.path.abspath(path), app_data, env=env), True
+            exe_raw = os.path.abspath(path)
+            exe_id = fs_path_id(exe_raw)
+            if exe_id in tested_exes:
+                continue
+            tested_exes.add(exe_id)
+            yield PythonInfo.from_exe(exe_raw, app_data, env=env), True
 
     # 1. if it's a path and exists
     if spec.path is not None:
@@ -109,29 +115,44 @@ def propose_interpreters(  # noqa: C901, PLR0912
             if spec.is_abs:
                 raise
         else:
-            yield PythonInfo.from_exe(os.path.abspath(spec.path), app_data, env=env), True
+            exe_raw = os.path.abspath(spec.path)
+            exe_id = fs_path_id(exe_raw)
+            if exe_id not in tested_exes:
+                tested_exes.add(exe_id)
+                yield PythonInfo.from_exe(exe_raw, app_data, env=env), True
         if spec.is_abs:
             return
     else:
         # 2. otherwise try with the current
-        yield PythonInfo.current_system(app_data), True
+        current_python = PythonInfo.current_system(app_data)
+        exe_raw = str(current_python.executable)
+        exe_id = fs_path_id(exe_raw)
+        if exe_id not in tested_exes:
+            tested_exes.add(exe_id)
+            yield current_python, True
 
         # 3. otherwise fallback to platform default logic
         if IS_WIN:
             from .windows import propose_interpreters  # noqa: PLC0415
 
             for interpreter in propose_interpreters(spec, app_data, env):
+                exe_raw = str(interpreter.executable)
+                exe_id = fs_path_id(exe_raw)
+                if exe_id in tested_exes:
+                    continue
+                tested_exes.add(exe_id)
                 yield interpreter, True
     # finally just find on path, the path order matters (as the candidates are less easy to control by end user)
-    tested_exes = set()
     find_candidates = path_exe_finder(spec)
     for pos, path in enumerate(get_paths(env)):
         logging.debug(LazyPathDump(pos, path, env))
         for exe, impl_must_match in find_candidates(path):
-            if exe in tested_exes:
+            exe_raw = str(exe)
+            exe_id = fs_path_id(exe_raw)
+            if exe_id in tested_exes:
                 continue
-            tested_exes.add(exe)
-            interpreter = PathPythonInfo.from_exe(str(exe), app_data, raise_on_error=False, env=env)
+            tested_exes.add(exe_id)
+            interpreter = PathPythonInfo.from_exe(exe_raw, app_data, raise_on_error=False, env=env)
             if interpreter is not None:
                 yield interpreter, impl_must_match
 
@@ -180,7 +201,10 @@ def path_exe_finder(spec: PythonSpec) -> Callable[[Path], Generator[tuple[Path,
 
     def path_exes(path: Path) -> Generator[tuple[Path, bool], None, None]:
         # 4. then maybe it's something exact on PATH - if it was direct lookup implementation no longer counts
-        yield (path / direct), False
+        direct_path = path / direct
+        if direct_path.exists():
+            yield direct_path, False
+
         # 5. or from the spec we can deduce if a name on path matches
         for exe in path.iterdir():
             match = pat.fullmatch(exe.name)
diff --git a/src/virtualenv/discovery/py_spec.py b/src/virtualenv/discovery/py_spec.py
index 5f173a2ed..dcd84f423 100644
--- a/src/virtualenv/discovery/py_spec.py
+++ b/src/virtualenv/discovery/py_spec.py
@@ -79,9 +79,17 @@ def generate_re(self, *, windows: bool) -> re.Pattern:
         )
         impl = "python" if self.implementation is None else f"python|{re.escape(self.implementation)}"
         suffix = r"\.exe" if windows else ""
+        version_conditional = (
+            "?"
+            # Windows Python executables are almost always unversioned
+            if windows
+            # Spec is an empty string
+            or self.major is None
+            else ""
+        )
         # Try matching `direct` first, so the `direct` group is filled when possible.
         return re.compile(
-            rf"(?P<impl>{impl})(?P<v>{version}){suffix}$",
+            rf"(?P<impl>{impl})(?P<v>{version}){version_conditional}{suffix}$",
             flags=re.IGNORECASE,
         )
 
diff --git a/src/virtualenv/info.py b/src/virtualenv/info.py
index cdc0f725a..8b217d0c3 100644
--- a/src/virtualenv/info.py
+++ b/src/virtualenv/info.py
@@ -48,6 +48,10 @@ def fs_supports_symlink():
     return _CAN_SYMLINK
 
 
+def fs_path_id(path: str) -> str:
+    return path.casefold() if fs_is_case_sensitive() else path
+
+
 __all__ = (
     "IS_CPYTHON",
     "IS_MAC_ARM64",
@@ -56,5 +60,6 @@ def fs_supports_symlink():
     "IS_ZIPAPP",
     "ROOT",
     "fs_is_case_sensitive",
+    "fs_path_id",
     "fs_supports_symlink",
 )


Test patch:
diff --git a/tests/unit/discovery/test_discovery.py b/tests/unit/discovery/test_discovery.py
index a52aad0ec..0e11c2d90 100644
--- a/tests/unit/discovery/test_discovery.py
+++ b/tests/unit/discovery/test_discovery.py
@@ -16,7 +16,7 @@
 
 @pytest.mark.skipif(not fs_supports_symlink(), reason="symlink not supported")
 @pytest.mark.parametrize("case", ["mixed", "lower", "upper"])
-@pytest.mark.parametrize("specificity", ["more", "less"])
+@pytest.mark.parametrize("specificity", ["more", "less", "none"])
 def test_discovery_via_path(monkeypatch, case, specificity, tmp_path, caplog, session_app_data):  # noqa: PLR0913
     caplog.set_level(logging.DEBUG)
     current = PythonInfo.current_system(session_app_data)
@@ -33,7 +33,11 @@ def test_discovery_via_path(monkeypatch, case, specificity, tmp_path, caplog, se
         # e.g. spec: python3.12.1, exe: /bin/python3
         core_ver = ".".join(str(i) for i in current.version_info[0:3])
         exe_ver = current.version_info.major
-    core = f"somethingVeryCryptic{core_ver}"
+    elif specificity == "none":
+        # e.g. spec: python3.12.1, exe: /bin/python
+        core_ver = ".".join(str(i) for i in current.version_info[0:3])
+        exe_ver = ""
+    core = "" if specificity == "none" else f"{name}{core_ver}"
     exe_name = f"{name}{exe_ver}{'.exe' if sys.platform == 'win32' else ''}"
     target = tmp_path / current.install_path("scripts")
     target.mkdir(parents=True)