Skip to content
Runbook

Python

General-purpose programming language and runtime, batteries included.

Runtimelanguageruntimescriptinginterpreter

Choose a platform

Overview

Python is a general-purpose, high-level programming language known for its readable syntax and a vast standard library ("batteries included"). It powers scripting, automation, web back ends, data science, and machine learning.

Versions and the python vs python3 command

On most Unix systems the interpreter is invoked as python3 (the bare python may be absent or point to Python 2 on older setups); on Arch Linux and inside the official Docker image, python already means Python 3. Windows adds the py launcher to pick a version.

Isolated environments

Prefer a virtual environment per project: python3 -m venv .venv then activate it. This keeps project dependencies separate from the system interpreter — never install project packages into the OS Python with sudo pip.