Skip to content

Automates downloading and installing any desired Python version from python.org, supporting both Windows and Linux.

License

Notifications You must be signed in to change notification settings

zebbern/PyVersioner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

PyVersioner

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.

License Python Platform

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!

PyVersioner demo

Installation

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 with sudo on Linux during installation.


Usage

1. Run the Script

python PyVersioner.py

2. Select a Major Python Version

Choose from a menu (e.g., 3.10, 3.11, etc.)

3. Choose a Patch Strategy

  • Option 1: Install the latest patch version
  • Option 2: Select a specific patch release

4. Let PyVersioner Handle the Rest

  • On Windows, .exe installer is downloaded and silently run.
  • On Linux, source is downloaded, built, and installed using altinstall.

Supported Versions


How It Works

  1. Scrapes version listings from https://www.python.org/ftp/python/
  2. Parses available directories into version numbers
  3. Filters patch versions under selected major version
  4. Downloads:
    • .exe installer (Windows)
    • .tgz source tarball (Linux)
  5. Runs installer with appropriate flags depending on OS

About

Automates downloading and installing any desired Python version from python.org, supporting both Windows and Linux.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages