Python Versions

This tools is a port to the Windows OS from pyenv.

pyenv for Windows

pyenv for Windows is available here: https://github.com/pyenv-win/pyenv-win

Install

From the PowerShell terminal issue the following command:

Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"

And reopen PowerShell.

list

pyenv install -l

install

pyenv install <version>

shell

pyenv shell <version>

global

pyenv global <version>

local

pyenv local <version>

The tool is analog to the linux tool, see https://telin.ugent.be/telin-docs/linux/python-versions/#list-python-versions

pip3

To activate the virtual python environment described in the Linux section, it is now located in the Scripts directory instead of bin:

venv\Scripts\activate

Will bring you in the environment after a python3 -m venv venv command.