[email protected]

Deprecation date: 2025-10-15

Install command:
brew install [email protected]

Interpreted, interactive, object-oriented programming language

https://www.python.org/

License: Python-2.0

Formula JSON API: /api/formula/[email protected]

Formula code: [email protected] on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 3.9.23

Other versions:

[email protected] 3.13.5 Interpreted, interactive, object-oriented programming language
[email protected] 3.12.11 Interpreted, interactive, object-oriented programming language
[email protected] 3.11.13 Interpreted, interactive, object-oriented programming language
[email protected] 3.10.18 Interpreted, interactive, object-oriented programming language
[email protected] 3.8.20 Interpreted, interactive, object-oriented programming language

Depends on:

gdbm 1.26 GNU database manager
mpdecimal 4.0.1 Library for decimal floating point arithmetic
openssl@3 3.5.2 Cryptography and SSL/TLS Toolkit
readline 8.3.1 Library for command-line editing
sqlite 3.50.4 Command-line interface for SQLite
xz 5.8.1 General-purpose data compression with high compression ratio

Depends on when building from source:

pkgconf 2.5.1 Package compiler and linker metadata toolkit
Python is installed as
    $HOMEBREW_PREFIX/bin/python3.9

Unversioned and major-versioned symlinks `python`, `python3`, `python-config`, `python3-config`, `pip`, `pip3`, etc. pointing to
`python3.9`, `python3.9-config`, `pip3.9` etc., respectively, are installed into
    $HOMEBREW_PREFIX/opt/[email protected]/libexec/bin

You can install Python packages with
    pip3.9 install <package>
They will install into the site-package directory
    $HOMEBREW_PREFIX/lib/python3.9/site-packages

tkinter is no longer included with this formula, but it is available separately:
    brew install [email protected]

If you do not need a specific version of Python, and always want Homebrew's `python3` in your PATH:
    brew install python3

See: https://docs.brew.sh/Homebrew-and-Python

Analytics:

Installs (30 days)
[email protected] 19,364
[email protected] --HEAD 20
Installs on Request (30 days)
[email protected] 18,591
[email protected] --HEAD 20
Build Errors (30 days)
[email protected] 9
Installs (90 days)
[email protected] 126,019
[email protected] --HEAD 168
Installs on Request (90 days)
[email protected] 119,867
[email protected] --HEAD 168
Installs (365 days)
[email protected] 587,089
[email protected] --HEAD 808
Installs on Request (365 days)
[email protected] 558,983
[email protected] --HEAD 808