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
.pyenv
directory using command promptmkdir %USERPROFILE%/.pyenv
if not exist - Extract and move files to
%USERPROFILE%\.pyenv\
- Ensure there is a
bin
folder 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