If you are learning python on mac osx, I strongly suggest that you just bite the bullet and use Anaconda, you can get either python 2.7 or python 3, but I would strongly suggest python 3.
The main reason I recommend anaconda, is that is bypasses all the admin stuff of getting it to work properly on that mac. Mac OSX comes with python 2.7 as native, as it is used by the operating system, trying to install python 3 as a newby is very very frustrating, unless you are familiar with PATH and other bash syntax. However, learning python, you will end up learning these in the process.
Anaconda is self installing, and actually ends up being self contained within a folder in your Library and can just be deleted if you don't like it. But for learning with, it just saves a lot of heatache you will end up with most of the libraries you are likely to want to use.
https://www.anaconda.com/download/#linux
All you will have to remember is that you are using anaconda as opposed to python, so you will be using "conda install" as opposed to "pip install". The other beauty of Anaconda, is that is sorts out the PATH for you, so once installed, you simply go into a terminal window, type "python" and it will automatically go into the python3 prompt without messing with the python that interacts with your OS.
Enjoy, python is a fun language.