PyEnv for Python allows you are install and switch between multiple versions of Python to suit you environment needs. The tools is very helpful and easy to install on your Windows machine.
- Download pyenv-win.zip
- Create a
.pyenvdirectory using command promptmkdir %USERPROFILE%/.pyenvif not exist - Extract and move files to
%USERPROFILE%\.pyenv\ - Ensure there is a
binfolder under%USERPROFILE%\.pyenv\pyenv-win - Add environment variables as follows:
- PYENV = C:\Users\<current user>\.pyenv\pyenv-win\
- PYENV_HOME = C:\Users\<current user>\.pyenv\pyenv-win\
- PYENV_ROOT = C:\Users\<current user>\.pyenv\pyenv-win\
- Add to Path:
- C:\Users\<current user>\.pyenv\pyenv-win\bin
- C:\Users\<current user>\.pyenv\pyenv-win\shims
More info:
https://github.com/pyenv-win/pyenv-win/blob/master/docs/installation.md#powershell

