# Install requirements

**URL:** <https://forum.ansible.com/t/install-requirements/11715>\
**Category:** Ansible Project\
**Created:** [July 24, 2012, 1:09pm UTC](https://forum.ansible.com/t/install-requirements/11715 "2012-07-24T13:09:13Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![Rawiri\_Blundell](https://avatars.discourse-cdn.com/v4/letter/r/919ad9/32.png) [@Rawiri\_Blundell](https://forum.ansible.com/u/Rawiri_Blundell)\
**Post date:** [September 26, 2012, 10:47pm UTC](https://forum.ansible.com/t/install-requirements/11715/21 "2012-09-26T22:47:02Z")

</div>

Just a heads up for anyone going down this path. You might want to add the following action. In library (e.g. in my case I’m working in /opt/ansible, so /opt/ansible/library), run:

for f in `grep -ri "/usr/bin/env python" * | cut -d":" -f1`; do sed -i ‘s//usr/bin/env python//usr/bin/env python26/g’ $f; done

before running make rpm. Otherwise you can do this after the fact in /usr/share/ansible

-Rawiri

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [September 26, 2012, 11:46pm UTC](https://forum.ansible.com/t/install-requirements/11715/22 "2012-09-26T23:46:35Z")

</div>

Don't do this. We have a much better answer already.

Just set ansible\_python\_interpreter as a group or host variable and it  
will override things at runtime. You can actually set  
ansible\_foo\_interpreter for any interpreter named foo, by the way, and  
it just works like magic (thanks to jkleint, IIRC).

[Previous page](https://forum.ansible.com/t/install-requirements/11715.md?page=1)
