So, I\'ve found some other clang error\'s on here that appear to be somewhat similar, however, the fixes aren\'t applicable to my situation.
I\'m using OSX Mavericks
I ran into the same problem recently while trying to install a different package.
Setting the following environment variables prior to installing with pip resolved the issue for me:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
If you're installing via sudo, don't forget to use "sudo -E" so that your environment variables propagate through sudo.
If that doesn't work for you, try the following command instead:
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible
Alternatively, as yet another potential solution, you can attempt to recompile a fresh version of python using Homebrew.
See this question for more information.
Hope this helps!