python@3.9

Deprecation date: 2025-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
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 3.9.22

Other versions:

python@3.13 3.13.3 Interpreted, interactive, object-oriented programming language
python@3.12 3.12.10 Interpreted, interactive, object-oriented programming language
python@3.11 3.11.12 Interpreted, interactive, object-oriented programming language
python@3.10 3.10.17 Interpreted, interactive, object-oriented programming language
python@3.8 3.8.20 Interpreted, interactive, object-oriented programming language

Depends on:

gdbm 1.25 GNU database manager
mpdecimal 4.0.0 Library for decimal floating point arithmetic
openssl@3 3.5.0 Cryptography and SSL/TLS Toolkit
readline 8.2.13 Library for command-line editing
sqlite 3.49.1 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.4.3 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

tkinter is no longer included with this formula, but it 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 58,420
python@3.9 --HEAD 72
Installs on Request (30 days)
python@3.9 55,398
python@3.9 --HEAD 72
Build Errors (30 days)
python@3.9 7
Installs (90 days)
python@3.9 132,404
python@3.9 --HEAD 189
Installs on Request (90 days)
python@3.9 125,581
python@3.9 --HEAD 189
Installs (365 days)
python@3.9 605,802
python@3.9 --HEAD 832
Installs on Request (365 days)
python@3.9 575,291
python@3.9 --HEAD 832
Fork me on GitHub