# Installing Ansible on Control Machine with Multiple Versions of Python

**URL:** <https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218>\
**Category:** Ansible Project\
**Created:** [April 20, 2016, 1:09pm UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218 "2016-04-20T13:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asilver](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@asilver](https://forum.ansible.com/u/asilver)\
**Post date:** [April 20, 2016, 1:09pm UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218/1 "2016-04-20T13:09:53Z")

</div>

Hello,  
I have a Redhat 6.7 system with two versions of Python. The version that came with the OS installation and used by the system (2.6) and a second one that I installed (2.7.11). If I want ansible to use the 2.7.11 version, what must I do to make that happen?

Can I still use “yum install ansible” or do I need to install a different way, etc, etc.

Thanks in advance  
Al

---

<div class="post-metadata">

**Author:** ![Mark\_Janssen](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Mark\_Janssen](https://forum.ansible.com/u/Mark_Janssen)\
**Post date:** [April 20, 2016, 8:10pm UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218/2 "2016-04-20T20:10:23Z")

</div>

As long as you make sure that your new version of python can be found first in the path, it shouldn’t be a problem, and you can install the rpm or pip package as normal.

---

<div class="post-metadata">

**Author:** ![asilver](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@asilver](https://forum.ansible.com/u/asilver)\
**Post date:** [April 21, 2016, 3:10pm UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218/3 "2016-04-21T15:10:42Z")

</div>

But then all utilities/programs that rely on python will use the 2.7.11 version. I only wanted ansible to use it.  
Thx  
Al

---

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [April 22, 2016, 1:18am UTC](https://forum.ansible.com/t/installing-ansible-on-control-machine-with-multiple-versions-of-python/21218/4 "2016-04-22T01:18:12Z")

</div>

use pip2.7 to install ansible
