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 the sudo command, like Homebrew. This command will download and install all of the prerequisites needed to run Ansible on your system. While it is as verbose as Homebrew, its output contains information on what it has done, rather than hints on what do to next:

As you can see, a lot of the requirements were already satisfied.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.119.148