python@3.9 (deprecated)

Disable date: 2026-10-15

Install command:
brew install python@3.9

Interpreted, interactive, object-oriented programming language

https://www.python.org/

License: Python-2.0

Formula JSON API: /api/formula/python@3.9.json

Formula code: python@3.9.rb on GitHub

Bottle (binary package) installation support provided for:

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

Current versions:

stable 3.9.24

Other versions:

python@3.14 3.14.0 Interpreted, interactive, object-oriented programming language
python@3.13 3.13.9 Interpreted, interactive, object-oriented programming language
python@3.12 3.12.12 Interpreted, interactive, object-oriented programming language
python@3.11 3.11.14 Interpreted, interactive, object-oriented programming language
python@3.10 3.10.19 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.6.0 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/python@3.9/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

`idle3.9` requires tkinter, which is available separately:
    brew install python-tk@3.9

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)
python@3.9 37,990
python@3.9 --HEAD 39
Installs on Request (30 days)
python@3.9 36,160
python@3.9 --HEAD 39
Build Errors (30 days)
python@3.9 10
Installs (90 days)
python@3.9 74,691
python@3.9 --HEAD 82
Installs on Request (90 days)
python@3.9 71,256
python@3.9 --HEAD 82
Installs (365 days)
python@3.9 502,428
python@3.9 --HEAD 667
Installs on Request (365 days)
python@3.9 477,905
python@3.9 --HEAD 667