Installing Ansible on Control Machine with Multiple Versions of Python

40 views
Skip to first unread message

asi...@net-sense.com

unread,
Apr 20, 2016, 3:21:22 PM4/20/16
to Ansible Project
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 

Mark Janssen

unread,
Apr 20, 2016, 4:10:31 PM4/20/16
to ansible...@googlegroups.com
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.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1a4e15f1-c84b-4615-b88c-72d64368e877%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mark Janssen  --  maniac(at)maniac.nl
Unix / Linux Open-Source and Internet Consultant
Maniac.nl Sig-IO.nl Vps.Stoned-IT.com

asi...@net-sense.com

unread,
Apr 21, 2016, 11:10:42 AM4/21/16
to Ansible Project
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

Guy Matz

unread,
Apr 21, 2016, 9:18:21 PM4/21/16
to ansible...@googlegroups.com
use pip2.7 to install ansible

Reply all
Reply to author
Forward
0 new messages