installation on Mac OSX issue

After installation via $brew install ansible

then, I added in ~/.bashrc

ansible

export PATH=/usr/local/Cellar/ansible/1.9.2/bin:$PATH

$source .bashrc

then

$ ansible

/usr/local/Cellar/ansible/1.9.2/bin/ansible: /usr/local/Cellar/ansible/1.9.2/libexec/bin/ansible: /usr/bin/python: bad interpreter: No such file or directory

/usr/local/Cellar/ansible/1.9.2/bin/ansible: line 2: /usr/local/Cellar/ansible/1.9.2/libexec/bin/ansible: Undefined error: 0

anyone? My default python is

$which python

/Users/seb/anaconda/bin/python so I guess it doesn’t know which python interpreter to use? If so how to modify Ansible script

Thanks

Sebastian

The recommended method of installing Ansible on Mac is to install from source and not via homebrew.

http://docs.ansible.com/ansible/intro_installation.html#latest-releases-on-mac-osx

You are likely to only run into problems with homebrew installed ansible