I installed pipx
using Homebrew.
% brew install pipx
As pipx
depends on Python, Homebrew automatically installed [email protected]
. Since it also created symlinks, Homebrew-installed Python became the default now.
% which python3
/usr/local/bin/python3
I want to keep the macOS-installed Python as default. But I need the Homebrew-installed one for pipx
.
I tried unlinking the formula.
% brew unlink [email protected]
This seemed to solve my issue as the macOS-installed Python was default again.
% which python3
/usr/bin/python3
But then I ran brew doctor
and got the following warning.
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
[email protected]
So unlinking isn’t a safe option as well.
What can I do to make sure both of these are true?
- macOS-installed Python is default.
- Homebrew formulas dependent on Python keep working smoothly.
wB2z6LvR is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.