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

Show parent comment

2

u/Classic_Mammoth_9379 12h ago edited 12h ago

Surely python.org is a 3rd party to you just in the same way homebrew is? What is it that you don't like about it... given that it gives you the result you want in the fashion you asked for?

1

u/xenomachina xenomachina 9h ago

I think that, by OP's reasoning, OP and python.org are the first and second party, while homebrew is a third party. An (unnecessary?) middle man, in a sense.

That said, I agree with you. If you want a quick command line way to install and update python, homebrew is the de facto solution on macOS.