brew install python or brew info python output mentions:

Unversioned symlinks python, python-config, pip etc. pointing to python3, python3-config, pip3 etc., respectively, have been installed into /opt/homebrew/opt/[email protected]/libexec/bin

So running, as root (for Bash (executable bash), use the ~/.bash_profile file):

echo 'export PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH' >> ~/.zprofile
source ~/.zprofile

gets you those symlinks created by Homebrew, python=python3, pip=pip3, etc.

python --version

Output:

Python 3.9.10

And:

pip --version

Output:

pip 21.3.1 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
Answer from Callum M on Stack Overflow
🌐
Homebrew
docs.brew.sh › Language-Runtimes-and-Packages
Homebrew Documentation: Language Runtimes and Packages
Use brew install when Homebrew provides the runtime or application you need. Use each language’s project environment and lock file for project dependencies. Avoid running language package managers with sudo or changing ownership of system-managed ...
🌐
Mac Install Guide
mac.install.guide › python › brew
Brew Install Python · Mac Install Guide
February 25, 2024 - Before you install any software package with Homebrew, run brew doctor to check that Homebrew is ready to install a package. ... Now you can install Python with brew install python.
Discussions

What are your thoughts on Homebrew for getting Python3 up and running on a Mac? And what is your preferred method on your machine?
I install Python from Python.org then install PyCharm. Off I go. More on reddit.com
🌐 r/learnpython
52
96
September 20, 2021
How to make macOS use the Python interpreter installed by Homebrew - Stack Overflow
On my system, Python version number is part of the path directory and I had a couple of versions of python installed via homebrew so I needed to choose one to represent python3 in bash profile. 2021-11-14T23:18:19.43Z+00:00 ... @adamlogan I have updated answer to include brew info python which ... More on stackoverflow.com
🌐 stackoverflow.com
homebrew - How to install Python packages for brew installed Pythons? - Stack Overflow
I just finished installing the latest stable version of python via Homebrew. $ brew install python3 Everything works fine. I would like to install packages, for example PyMongo. I don't have pip. ... More on stackoverflow.com
🌐 stackoverflow.com
macos - How to link home brew python version and set it as default - Stack Overflow
To force the link and overwrite ... deleted: brew link --overwrite --dry-run formula_name ... Probable duplicate of several others. This one seems to have the best solution. Or maybe this one. ... Save this answer. ... Show activity on this post. After installing python3 with brew ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Homebrew
formulae.brew.sh › formula › python@3.14
Homebrew Formulae: python@3.14
brew install python@3.14 · Interpreted, interactive, object-oriented programming language · https://www.python.org/ License: Python-2.0 · Development: Pull requests · Formula JSON API: /api/formula/python@3.14.json · Formula code: ...
🌐
Substack
mettlesome.substack.com › mettlesome // raphaël’s substack › the right way to install python on a mac
The right way to install Python on a Mac
February 7, 2024 - Note that HomeBrew does not automatically update itself nor any of the packages installed. Do this yourself once in a while by executing: brew update brew upgrade · Pyenv is a package manager specifically for python itself. It allows you to install multiple versions of python on one machine.
🌐
PyDevTools
pydevtools.com › home › python developer tooling handbook › explanation › should i use homebrew to install python?
Should I use Homebrew to install Python? | pydevtools
September 7, 2026 - You can install python@3.13, but you cannot pin to Python 3.13.4 specifically, which rules it out for reproducible builds or matching a production interpreter. Because brew install python puts a python3 binary on your PATH, many developers start using it to install packages globally with pip install.
Find elsewhere
Top answer
1 of 7
84

brew install python or brew info python output mentions:

Unversioned symlinks python, python-config, pip etc. pointing to python3, python3-config, pip3 etc., respectively, have been installed into /opt/homebrew/opt/[email protected]/libexec/bin

So running, as root (for Bash (executable bash), use the ~/.bash_profile file):

echo 'export PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH' >> ~/.zprofile
source ~/.zprofile

gets you those symlinks created by Homebrew, python=python3, pip=pip3, etc.

python --version

Output:

Python 3.9.10

And:

pip --version

Output:

pip 21.3.1 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)
2 of 7
38

If you want to install Python 3 using Homebrew:

brew install python3

Output:

==> Downloading http://python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2
Already downloaded: /Library/Caches/Homebrew/python3-3.3.0.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/python3/3.3.0 --enable-ipv6 --datarootdir=/usr/local/Cell
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.3.0
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.3.0/share/python3
==> Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
Already downloaded: /Library/Caches/Homebrew/distribute-0.6.35.tar.gz
==> /usr/local/Cellar/python3/3.3.0/bin/python3.3 -s setup.py install --force --verbose --install-li
==> Downloading https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/pip-1.3.1.tar.gz
==> /usr/local/Cellar/python3/3.3.0/bin/python3.3 -s setup.py install --force --verbose --install-li
==> Caveats
Homebrew's Python3 framework
  /usr/local/Cellar/python3/3.3.0/Frameworks/Python.framework

Distribute and Pip have been installed. To update them
  pip3 install --upgrade distribute
  pip3 install --upgrade pip

To symlink "Idle 3" and the "Python Launcher 3" to ~/Applications
  `brew linkapps`

You can install Python packages with
  `pip3 install <your_favorite_package>`

They will install into the site-package directory
 /usr/local/lib/python3.3/site-packages
Executable python scripts will be put in:
 /usr/local/share/python3
so you may want to put "/usr/local/share/python3" in your PATH, too.

    See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python

Once installed update your system PATH variable, add the next line to the ~/.bash_profile file:

export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH

And then:

source ~/.bash_profile

Now launch Python:

python3

Output:

Python 3.3.0 (default, Mar 26 2013, 10:01:40)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

You can check the python3 path:

which python3

Output:

/usr/local/bin/python3
🌐
YouTube
youtube.com › watch
HOWTO: Installing Homebrew and Python on macOS - YouTube
This video demonstrates how to install Python 3 on macOS using the free and open-source package manager Homebrew.Homebrew download and documentation: https:/...
Published: February 8, 2025
🌐
YouTube
youtube.com › watch
How to Install Python on Mac (Homebrew) - YouTube
Install Python with Homebrew → brew install pythonIn today's video, I'll show you how to install Python with Homebrew. Homebrew makes it easy to install and ...
Published: May 14, 2022
🌐
Homebrew
formulae.brew.sh › formula › python-launcher
Homebrew Formulae: python-launcher
brew install python-launcher · Launch your Python interpreter the lazy/smart way · https://pythoncode.run · License: MIT · Development: Pull requests · Formula JSON API: /api/formula/python-launcher.json · Formula code: python-launcher.rb ...
🌐
Homebrew
formulae.brew.sh › formula › python@3.13
Homebrew Formulae: python@3.13
brew install python@3.13 · Interpreted, interactive, object-oriented programming language · https://www.python.org/ License: Python-2.0 · Development: Pull requests · Formula JSON API: /api/formula/python@3.13.json · Formula code: python@3.13.rb on GitHub ·
🌐
Medium
evinsellin.medium.com › an-opinionated-python-setup-for-mac-2021215dba8f
An Opinionated Python Setup Guide for Mac | by Evin Sellin | Medium
February 28, 2023 - TLDR: Use the pyenv distribution from homebrew. Never use the system version of Python. Never use the base pip environment. For individual…
🌐
Medium
medium.com › @ruslandurrani › using-homebrew-install-python-pip-and-pandas-macbook-fc7edac40cb
Using Homebrew Install Python, PIP and Pandas (Macbook) | by Muhammad Ruslan Babar | Medium
July 22, 2023 - Install Python and Pip: Open a terminal on your MacBook and run the following commands to install Python and Pip using Homebrew: brew update brew install python · After the installation, Python should be available as python3 and pip3.
🌐
GitHub
github.com › orgs › Homebrew › discussions › 5014
Is It Possible to Install Python 3.11.3 in Particular with Homebrew? · Homebrew · Discussion #5014
December 31, 2023 - ==> Searching for similarly named formulae and casks... ==> Formulae python@3.11 ✔ python@3.10 ✔ python@3.12 ✔ To install python@3.11 ✔, run: brew install python@3.11 ✔ hubert@Huberts-Mac-Mini ~ %
🌐
Homebrew
formulae.brew.sh › formula › python@3.9
Homebrew Formulae: python@3.9
brew install python@3.9 · Interpreted, interactive, object-oriented programming language · https://www.python.org/ License: Python-2.0 · Development: Pull requests · Formula JSON API: /api/formula/python@3.9.json · Formula code: python@3.9.rb on GitHub ·
🌐
GitHub
gist.github.com › Daeinar › 4383663
Install pip packages with homebrew · GitHub
pip3 install BetterADBSync error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try brew install xyz, where xyz is the package you are trying to install.