# installation on Mac OSX issue

**URL:** <https://forum.ansible.com/t/installation-on-mac-osx-issue/19043>\
**Category:** Ansible Project\
**Created:** [August 18, 2015, 2:32pm UTC](https://forum.ansible.com/t/installation-on-mac-osx-issue/19043 "2015-08-18T14:32:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_M\_Cheung](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sebastian\_M\_Cheung](https://forum.ansible.com/u/Sebastian_M_Cheung)\
**Post date:** [August 18, 2015, 2:32pm UTC](https://forum.ansible.com/t/installation-on-mac-osx-issue/19043/1 "2015-08-18T14:32:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [August 18, 2015, 4:12pm UTC](https://forum.ansible.com/t/installation-on-mac-osx-issue/19043/2 "2015-08-18T16:12:15Z")

</div>

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](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
