python-launcher

Launch Python interpreters intelligently based on version specified

brewmacoslinux
Try with needOr install directly
Source

About

Launch your Python interpreter the lazy/smart way

Commands

py

Examples

Run script with default Python version$ py script.py
Run script with specific Python version (3.11)$ py -3.11 script.py
Launch interactive Python 2 shell$ py -2