# Ansible and Python versions

**URL:** <https://forum.ansible.com/t/ansible-and-python-versions/17889>\
**Category:** Ansible Project\
**Created:** [April 2, 2015, 12:50am UTC](https://forum.ansible.com/t/ansible-and-python-versions/17889 "2015-04-02T00:50:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebin](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Sebin](https://forum.ansible.com/u/Sebin)\
**Post date:** [April 2, 2015, 12:50am UTC](https://forum.ansible.com/t/ansible-and-python-versions/17889/1 "2015-04-02T00:50:03Z")

</div>

Hi All,

I am trying to find out how ansible can manage an infrastructure which have different python versions  
I have a collection of boxes and I am planning to install ansible on a box with Python 2.6  
The pool of boxes, contains both Python 2.6 and Python 2.7  
Is there any problem in doing this? Can Ansible automatically work with different versions?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 2, 2015, 12:51am UTC](https://forum.ansible.com/t/ansible-and-python-versions/17889/2 "2015-04-02T00:51:40Z")

</div>

ansible should work fine with those 2 versions, if you need to setup  
different paths you can use the ansible\_python\_interpreter variable  
per host or group of hosts.
