Search code examples
pythonwindows-10pyenv

The term 'pyenv' is not recognized as a name of a cmdlet


I am on windows10: PS C:\Users\hp\Documents\Projects> pip install pip --target $HOME\\.pyenv

pyenv got installed successfully.

PS C:\Users\hp\Documents\Projects> pyenv

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.

Solution

  • Add the following to you PATH variable

    %USERPROFILE%\.pyenv\pyenv-win\bin
    %USERPROFILE%\.pyenv\pyenv-win\shims