"brew install python" installs 3.9. Why not 3.10?


My understanding is that "brew install python" installs the latest version of python. Why isn’t it pulling 3.10? 3.10 is marked as a stable release.

I can install 3.10 with "brew install [email protected] just fine and can update my PATH so that python and pip point to the right versions. But I am curious why "brew install python" its not installing 3.10.

My other understanding is that 3.10 is directly compatible with the M1 chips so that is why I want 3.10.

Please let me know if I am mistaken.

Asked By: OffensiveBias



As Henry Schreiner have specified now Python 3.10 is the new default in Brew. Thx for pointing it

— Obsolete —
The "python3" formula is still 3.9 in the brew system
check the doc here:
https://formulae.brew.sh/formula/[email protected]#default

The latest version of the formula for 3.9 also support apple silicon.

If you want to use python3.10 you need to run as you described brew install [email protected]

The reason why 3.9 is still the official python3 formula is that generally user using the vanilla python3 are not looking for the latest revision but the more stable. in some months the transition will done.

Answered By: cnaimi

[email protected] is currently keg-only, which means 3.10 is not the default version yet. You can see a message stating this by typing on the terminal: brew info [email protected]:

[email protected] is keg-only, which means it was not symlinked into /opt/homebrew,
because this is an alternate version of another formula.

The migration tasks are not yet all done as of July 2022. You can see the latest situation and the details on GitHub: https://github.com/Homebrew/homebrew-core/pull/87075

Answered By: catwith
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.