Pyenv For Windows
A Simple Python Version Management Tool. It Allows You To Easily Switch Between Multiple Versions Of Python.
Last updated
A Simple Python Version Management Tool. It Allows You To Easily Switch Between Multiple Versions Of Python.
Last updated
Uninstall Installed Python If Present (Along with Environment Variables).
If You Are Using Windows 10 1905 or Newer: Start Menu -> App Execution Aliases -> Disable Python Related Aliases.
Install Pyenv With PowerShell:
If You Get UnauthorizedAccess Error, Run Windows PowerShell As Administrator and Run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Command. Then Run The Above Command Again.
Reopen PowerShell.
Run pyenv --version
Command To Check If The Installation Was Successful.
Run pyenv install -l
Command To Check The List Of Python Versions Supported By Pyenv.
Run pyenv install
<version>
Command To Install The Supported Version.
Check Which Python Version You Are Using and Path: pyenv version
Check If Python is Running: python -c "import sys; print(sys.executable)"
commands: Lists All Available Pyenv Commands.
local: Used To Set or Learn The Project Specific Local Python Version.
global: Used To Set or Learn The Global Python Version.
install: Used To Install One or More Versions Of Python.
uninstall: Used To Uninstall One or More Versions Of Python.
update: Used To Update The Cached Python Version Database.
rehash: Recommended To Run This Command After Changing Python Versions.
vname or version-name: Shows The Current Python Version.
version: Shows The Current Python Version and Source.
versions: Lists All Python Versions Installed With Pyenv.
Checking The Python Version: python -V
Checking Pyenv Version: pyenv --version
Which Python Version is Used and Path: pyenv which python
Which Pip Version is Used and Path: pyenv which pip
To View the List of Python Versions Supported by Pyenv: pyenv install -l
To Filter the List: pyenv install -l | findstr 3.8
Note: Python Installation Wizard May Pop Up. You Will Need To Click On The Wizard During Installation. There is No Need To Change Any Option In It. You Can Use -q Parameter For Silent Installation.
You Can Also Install Multiple Versions With A Single Command: pyenv install 2.4.3 3.6.8
To Set A Python Version As A Global Version: pyenv global 3.5.2
To Set A Python Version As A Local Version: pyenv local 3.5.2
The Local Version Will Be Used When Python is Called From Within The Folder.
To Uninstall A Python Version: pyenv uninstall 3.5.2
Pyenv Github Repo: