The recommended way of installing Ansible on macOS is using PIP. PIP is a packet manger system used for installing python packages.
Installing PIP on mac
You can install pip using the following command on terminal. Make sure you have admin privileges.
sudo easy_install pip
Installing Ansible on mac
sudo pip install ansible