The pip method

The second method, pip, is a more traditional approach to installing and configuring a Python package.

pip is a package manager for Python software. It is a recursive acronym for pip install packages. It is a good frontend for installing packages from the Python Package Index (PyPI). You can find the index at https://pypi.python.org/pypi/.

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 ...

Get Learn Ansible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.