Pyenv update does not work anymore (on Windows)

I want to update the cached Python version in pyenv (under Windows), which used to work, but now
pyenv update
results in
:: [Info] :: Mirror: Index of /ftp/python/
C:\Users\Ruud.pyenv\pyenv-win\libexec\pyenv-update.vbs(279, 9) htmlfile: This command is not supported.

It used to work. Also, reinstalling doesn’t help.

Does anyone have a suggestion on how to solve this?

[Edit] This is a known issue

@JamesParrott

Thanks for that. Replacing the pyenv-update.vbs with the one suggested in GitHub did the trick.

Still worrying that 3 months after the bug was detected (due to a new Windows version), there is no official solution …

Thanks again!

1 Like

I’m not worried at all. Once upon a time, Pyenv-win did a good job for me. But I use uv now instead.

1 Like

It might be worth noting that for Windows there is now the Python install manager which is intended to eventually replace the standard Windows installers and will let you manage multiple Python versions. pyenv-win may break again when the old/current installers are no longer provided unless it is updated to use the new distribution method.

2 Likes