The second method, pip, is a more traditional approach to installing and configuring a Python package.
Depending on what you have installed on your machine, you may have to install pip. To do this, run the following command:
$ easy_install pip
This will install pip using the easy_install installer, which ships with macOS by default. Once installed, you can install Ansible by running the following command:
$ sudo -H pip install ansible
You will be prompted for your password, as we are using ...