PyEnv

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.

  1. Download pyenv-win.zip
  2. Create a .pyenv directory using command prompt mkdir %USERPROFILE%/.pyenv if not exist
  3. Extract and move files to %USERPROFILE%\.pyenv\
  4. Ensure there is a bin folder under %USERPROFILE%\.pyenv\pyenv-win
  5. 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

Author: Jaf

Graduated in 2003 from Computer and Systems Engineering department, one of 6 departments in the Faculty of Engineering, Cairo University. Started a career in mobile applications since 2005 through 2011 when switched career into product management and marketing in the mobile apps industry.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.