A lightweight Python version manager that allows you to install, manage, and switch between different Python versions on Windows.
- Install multiple Python versions side by side
- Switch between installed Python versions easily
- Manage Python versions through simple commands
- Automatically handles PATH environment variables
- Clean uninstallation of Python versions
- Windows operating system
- Administrator privileges (required for PATH manipulation)
- Internet connection (for downloading Python versions)
- Git installed on your system
- Python installed on your PC
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/pyvm.git cd pyvm
-
Run your first command to verify installation:
python pyvm.py
-
(Optional) Add to PATH:
- Add the pyvm directory to your system's PATH
- Or create a shortcut in a directory that's already in your PATH
Right-click on PowerShell or Command Prompt and select "Run as administrator" before executing any PyVM commands.
-
View available commands:
python pyvm.py
-
List installed Python versions:
python pyvm.py list
-
Install a specific Python version:
python pyvm.py install 3.9.0
-
Switch to an installed Python version:
python pyvm.py use 3.9.0
-
Uninstall a Python version:
python pyvm.py uninstall 3.9.0
-
First time setup:
# Open PowerShell as Administrator git clone https://github.com/YOUR_USERNAME/pyvm.git cd pyvm python pyvm.py list # Will show no versions installed
-
Install your first Python version:
python pyvm.py install 3.9.0 # Wait for installation to complete
-
Switch to the installed version:
python pyvm.py use 3.9.0
-
Verify the active Python version:
python --version
PyVM creates the following directory structure in your user home folder:
~/.pyvm/
├── versions/
│ ├── 3.9.0/
│ ├── 3.8.0/
│ └── ...
└── config.json
Repository Structure:
pyvm/
├── pyvm.py
├── README.md
├── LICENSE
└── .gitignore
-
"Access Denied" errors:
- Make sure you're running PowerShell or Command Prompt as Administrator
-
Python version not found after switching:
- Close and reopen your terminal
- Verify PATH environment variable is updated
- Check if the version is properly installed using
pyvm list
-
Download failures:
- Check your internet connection
- Verify the Python version exists on python.org
- Try running the command again
-
PATH issues:
- Check if multiple Python installations exist in PATH
- Verify the registry changes were successful
- Log out and log back in to refresh environment variables
- Only supports 64-bit Python versions
- Requires administrator privileges
- Windows-only support
- Internet connection required for installation
- Does not support beta/alpha versions
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.