I am on windows10:
pip install pip --target $HOME\.pyenv
pyenv got installed successfully.
The term 'pyenv' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Add the following to you