MacOS already ships with python pre-installed.
If you want newer versions, I suggest to use brew - you can then just run brew install python3.
A more click-friendly alternative is the anaconda distribution - personally, I dislike it as it tends to muddle with things it should not muddle with.
Installation from source is also possible, but if you have to ask how, this is not a solution I suggest.