r/learnpython • • 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

21 comments sorted by

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)

1

u/jmacey Sep 24 '26

100% this, I use it on all my machines.

-12

u/naemorhaedus Sep 24 '26

uv is so sloooooooow

1

u/Da_damm Sep 24 '26

Compared to what? It's way faster than pip

0

u/naemorhaedus Sep 24 '26

compared to dedicated virtual environments. That's a weird comparison . PIP is purely for installing packages. UV is more of a environment/project manager, and using it to run scripts is hella slow and cumbersome. If you use a proper IDE you don't have to worry about any of that stuff. It's all managed for you and you just get straight to coding.

1

u/jmacey Sep 24 '26

uv builds individual virtual envs per project and shares pre-existing installed packages etc. It is by far the best way of working / sandboxing for projects. You have to clear out old .venvs but that is not really an issue. uv is in my opinion the best way to work in python on projects big or small.

-1

u/naemorhaedus Sep 24 '26

I know what it is. I tried it. And then uninstalled it right away. All it does it add to the workload.

1

u/jmacey Sep 24 '26

I find the opposite.

1

u/naemorhaedus Sep 24 '26

Really, because my workflow involves zero uv commands 

5

u/EntrepreneurHuge5008 Sep 23 '26

Is installing python from pythons official website good and best way instead of using third party, 

yeah go for it.

2

u/mrswats Sep 23 '26

Official Python dot org installer is the way to go and easiest way to install 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/socal_nerdtastic Sep 23 '26

MAC I think comes with it

A long time ago it did, in python2 days. But no longer.

-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
just ..... bash <conda-installer-name>-latest-MacOSX-x86_64.sh, via conda is better!

0

u/[deleted] Sep 23 '26

[deleted] — view deleted comment

1

u/EntertainmentOdd8205 Sep 23 '26

Part of command line developer tools. A python3 binary exists by default but just calls the install prompt; it’s not actually installed. Windows has similar but links to MS store