Download and install any desired version of Python from python.org.
Supports automated version selection, patch filtering, and system-specific installation for Windows and Linux.
Note
- Fetches all available Python versions from the official source.
- Filters patch versions based on selected major release (e.g.,
3.11.x
). - Fully automated installation process.
- Ideal for scripting, testing, or managing legacy environments.
- Change your python version to your desired version in less than a minute!
Clone the repository:
git clone https://github.com/zebbern/PyVersioner.git
cd PyVersioner
Run the script:
python PyVersioner.py
⚠️ Note: You may need to run withsudo
on Linux during installation.
python PyVersioner.py
Choose from a menu (e.g., 3.10, 3.11, etc.)
- Option 1: Install the latest patch version
- Option 2: Select a specific patch release
- On Windows,
.exe
installer is downloaded and silently run. - On Linux, source is downloaded, built, and installed using
altinstall
.
- Python 3.5.x through 3.13.x
- Support depends on what's available on the official Python FTP
- Scrapes version listings from
https://www.python.org/ftp/python/
- Parses available directories into version numbers
- Filters patch versions under selected major version
- Downloads:
.exe
installer (Windows).tgz
source tarball (Linux)
- Runs installer with appropriate flags depending on OS