macOS Sanoma comes with preinstalled Python3, but I like to use miniconda (a minimal version of anaconda) to manage my python installation.

Why? Because I can manage multiple Python environments i.e. different versions of Python and also different versions of Python Packages.

First, I will install miniconda from Homebrew.

brew install miniconda

Then, add the following line in your ~/.zshrc (your shell init file):

eval "$(conda "shell.$(basename "${SHELL}")" hook)"

Now you can manage your Python installation on macOS with conda.