Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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.


2 Answers

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.

like image 100
cnaimi Avatar answered Dec 08 '25 06:12

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

like image 29
catwith Avatar answered Dec 08 '25 08:12

catwith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!