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

2

5

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.
Privative answered 8/3, 2021 at 5:7 Comment(0)
P
11

Add the following to you PATH variable

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

Privative answered 8/3, 2021 at 5:39 Comment(1)
Instructions for those who are unsure about how to add PATH, search in Windows for Advanced system settings. Click Environment Variables. In the section System Variables, add a new PATH environment variable.Conversazione
K
0

Actually, for pyenv-win users, now there is a nice section from README about adding system settings to solve this. Here is a screen shot:

enter image description here

Kew answered 17/9, 2024 at 15:43 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.