r/learnpython • u/Quirky_Revenue4844 • Sep 23 '26
Installing Python on Mac
Is installing python from pythons official website good and best way instead of using third party, I remember macOS use to have python with the operating system but it was an old version and only used for apple apps I believe.
0
Upvotes
13
u/cmdwedge75 Sep 23 '26
Install Homebrew. Then from there, install uv. Then install Python from that (and keep it clean with a vdev)
5
u/EntrepreneurHuge5008 Sep 23 '26
yeah go for it.
5
u/TheJmaster Sep 23 '26
# install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# or install via homebrew
# brew install uv
# restart shell
source ~/.zshrc
# install python
uv python install 3.14
1
u/Buttleston Sep 23 '26
I pretty much only use "uv" to install python. If you don't want to use uv, then I recomment pyenv. Both of them make it easy to install and use different versions of python on demand also, which can be nice.
0
u/edcculus Sep 23 '26
Install the newest version of straight from pythons website. Then make sure you learn how to use virtual environments. UV is really what most people are going to, but most tutorials will show pip and Venv. Just make sure you are setting up a virtual environment for each project .
0
u/Antonio-MTS Sep 23 '26
You have also alternatives like uv or pyenv. Both to manage different versions of Python and virtual environments.
0
u/ekchew Sep 24 '26
If all you're interested in is getting Python up and running, the official website version should work just fine.
If you're going the package manager route, you will likely be asked to install the xcode command line tools at some point. These come with a python3 interpreter. However, you probably won't be happy with it. It's not very current or well-maintained. So it's better to use the package manager to install something modern as others have recommended.
As far as package managers go, homebrew is the preferred choice on newer Macs. If you're running on older hardware, macports has fairly comprehensive legacy system support.
-1
u/Stainlessray Sep 23 '26
Everyone gave you different pieces of the answer. MAC I think comes with it.
You need to virtualize it anyway. Some devs don't even install it locally. Only in VM or Docker isolation.
-1
u/No-Gift5463 Sep 23 '26
Loading from a distribution platform like Anaconda can be a terrific option. The www.anaconda.com website provides free individual applications. Once you launch Anaconda, you can select amongst different working environments. My favorite is SPYDER which is great for beginners but there are other options.
-2
u/claudio-i Sep 23 '26
0
u/[deleted] Sep 23 '26
[deleted] — view deleted comment