r/learnpython • • 13h ago

updating Python on macOS

How do you update Python on macOS? I looked it up and from what I can tell, there is no simple command you can enter into the terminal to update it, and you have to instead go to the website https://www.python.org/downloads/ and download and install it manually to update which is inconvenient. There's also the question of removing the old versions you have no intention of using anymore.

I am aware of Homebrew and I do have it for other things I've installed, but I want to try to only use it to download things to my MacBook that I otherwise couldn't. Python can easily be downloaded for mac separately and I want to keep it that way if possible. Is there no update command for the mac terminal to simply update Python?

11 Upvotes

26 comments sorted by

View all comments

2

u/SharkSymphony 12h ago

Nope! The official Python installation on MacOS assumes you'll be installing the same old dirt-simple way Mac users have been installing for aeons: manually download, double-click to install.

Which is why Homebrew comes with cask support, BTW – so that you can install/uninstall Mac apps using its command-line package manager, if that's what floats your boat! Homebrew's no longer just for things you can't install any other way.

But there are plenty of other options for you beyond those two, as outlined in other comments, if you don't like either of those options. Each option has its pros and cons. Pick the one you like the best!