Install Python 3.12 on macOS or Linux, create an isolated virtual environment, and confirm pip is ready ā the foundation every DevOps automation script depends on.
Before installing anything, check what Python version is already on your machine. Many Linux systems ship with Python 3 pre-installed, and macOS may have it via Homebrew or Xcode tools.
python3 --versionpython3 --version prints the installed Python version.
If you see Python 3.10 or higher, your system already meets the minimum requirement.
If the command is not found or you see a version below 3.10, follow Step 2 (macOS) or Step 3 (Linux) to install a current version.
If Python is already installed: Python 3.12.x (or similar 3.10+ version).
If not found: command not found: python3.