Python Version Switcher (Windows)
A simple yet powerful PowerShell script to quickly switch between multiple Python versions on your Windows machine. It intelligently scans for existing Python installations and updates your user PATH environment variable to prioritize the version you select.

Download
Python Switcher
Download the latest version from the official GitHub repository. The script is provided as a .zip
archive.
How to Use
- Download and Unpack: Download the latest release archive and extract its contents. You should have two files:
python_switcher.ps1
andpython_switcher.bat
. - Run the Launcher: Simply double-click the
python_switcher.bat
file to start the script. - Select a Version: The script will show you the currently active Python version and a list of all other versions it found on your system. Enter the number corresponding to the version you want to set as the default.
- Confirm Selection: You will be asked to confirm your choice. Type
Y
and press Enter to apply the changes. - Restart Your Terminal: The change takes full effect in any new terminal or command prompt window you open. Existing terminal sessions will not be affected.
Important Notes
- User PATH Variable: This script only modifies the
PATH
environment variable for the current user. It does not alter the system-widePATH
. - Administrator Rights: While not always necessary, running the
.bat
file as an administrator can help prevent potential permission issues. - Python Launcher (`py.exe`): This tool sets the default version for the
python
command. The Windows Python Launcher is unaffected and can still be used to run specific versions (e.g.,py -3.9 your_script.py
).