
Homebrew’s site-packages directory is first created (1) once any Homebrew formulae with Python bindings are installed, or (2) upon brew install python.

A formula was provided until the end of 2019, at which point it was removed due to the Python 2 deprecation. Homebrew provides formulae to brew Python 3.y. Homebrew should work with any CPython and defaults to the macOS system Python. See Python for Formula Authors for advice on writing formulae to install packages written in Python.


This page describes how Python is handled in Homebrew for users.
