Installing Ansible on Control Machine with Multiple Versions of Python

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

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.

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

use pip2.7 to install ansible