homebrew
Homebrew is a package manager for macOS and Linux that makes installing software packages simple. While not Python-specific, it provides an important way to install Python tools and dependencies on macOS systems.
Core Capabilities
- Installs packages (“formulae”) and larger binary packages (“casks”)
- Manages package dependencies
- Updates installed packages
- Easy installation/uninstallation using
brew installandbrew uninstall - Installs Python interpreters (
brew install python) - Installs Python tools like
uvandpipx - Provides dependency libraries needed for Python packages (e.g. openssl, sqlite)
⚠️
While Homebrew can install Python, it’s not recommended as your primary way to manage Python versions for development projects. Homebrew updates can unexpectedly change Python versions, breaking your project environments. Instead, use dedicated Python version management tools like
uv python install or pyenv which provide more reliable and granular control over Python versions.Pros
- Simple to use with consistent commands
- Well-maintained and stable
- Large collection of available packages
Cons
- macOS/Linux only (no Windows support)
- Can conflict with system Python on macOS
- Updates may break existing Python setups
- Less granular control compared to Python-specific tools
Learn More
Also Mentioned In
Last updated on