# Python not found

**URL:** <https://forum.ansible.com/t/python-not-found/22490>\
**Category:** Ansible Developer\
**Tags:** ansible-devel\
**Created:** [September 5, 2016, 4:08pm UTC](https://forum.ansible.com/t/python-not-found/22490 "2016-09-05T16:08:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Palacios](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Javier\_Palacios](https://forum.ansible.com/u/Javier_Palacios)\
**Post date:** [September 5, 2016, 4:08pm UTC](https://forum.ansible.com/t/python-not-found/22490/1 "2016-09-05T16:08:43Z")

</div>

Apart from installing python 2.7, you need to manually symlink:  
ln -s /usr/bin/python2.7 /usr/bin/python  
At least ansible 1.9, searchs for exactly ‘/usr/bin/python’ path.

Javier Palacios

---

<div class="post-metadata">

**Author:** ![mark.kusch](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mark.kusch](https://forum.ansible.com/u/mark.kusch)\
**Post date:** [September 5, 2016, 4:27pm UTC](https://forum.ansible.com/t/python-not-found/22490/2 "2016-09-05T16:27:21Z")

</div>

Eh,

Ansible hosts database allows to configure that via  
`ansible_python_interpreter`.

e.g.

host\_with\_custom\_python\_2 ansible\_host=1.2.3.4 ansible\_python\_interpreter=/usr/local/bin/python2

See: [http://docs.ansible.com/ansible/intro\_inventory.html#list-of-behavioral-inventory-parameters](http://docs.ansible.com/ansible/intro_inventory.html#list-of-behavioral-inventory-parameters)

# kraM

PS: No need to maddle with symlinks...
