r/learnpython • u/silverknife42 • 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?
View all comments
0
u/mumpie 12h ago
install homebrew and following their instructions:
https://docs.brew.sh/Language-Runtimes-and-Packages
I currently have 3 different versions of python installed via homebrew (3.13, 3.14, and 3.15).
I used pyenv to switch between the different versions as needed.
Leave the system python alone as it may be used by other applications.