Can't install ROOT using Home-brew on Mac, problem with python@2

Hi all,

I’m trying to install ROOT on my Mac (OS Monterey 12.1) using Homebrew. I have the BASH shell enabled. However, I get the following error when I try to run “brew install root”:

FormulaUnavailableError: No available formula with the name “/usr/local/opt/python@2/.brew/python@2.rb”.

When I try to install the python@2 package, it also fails, giving me:

Warning: No available formula with the name “python@2.rb”. Did you mean python@3.9, python@3.8, python@3.7 or python@3.10?

What can I do here? I would prefer to use Home-brew for my installation, is there a fix for this?

Thank you.

Hi all,

I’ve figured it out, it was much simpler than I expected. I had to run a “brew upgrade” several times, using “brew uninstall” and “brew remove” as needed to clean out any broken packages. Then a “brew upgrade --cask” was able to get everything working.

1 Like