# how to install pip2.7 packages with ansible.

**URL:** <https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345>\
**Category:** Ansible Project\
**Created:** [September 23, 2015, 5:40pm UTC](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345 "2015-09-23T17:40:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Roy](https://forum.ansible.com/u/Roy)\
**Post date:** [September 23, 2015, 5:40pm UTC](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345/1 "2015-09-23T17:40:20Z")

</div>

Hi,

We have Centos 6.5 with python2.6 as default and python2.7 also on it.

So how do we install python packages for pip2.7 ?

There is no module name pip2.7 in ansible.

any help here ?

---

<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:** [September 23, 2015, 5:43pm UTC](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345/2 "2015-09-23T17:43:35Z")

</div>

use the executable option of the module to specify the pip2.7 over the  
default pip.

---

<div class="post-metadata">

**Author:** ![Roy](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@Roy](https://forum.ansible.com/u/Roy)\
**Post date:** [September 28, 2015, 9:37pm UTC](https://forum.ansible.com/t/how-to-install-pip2-7-packages-with-ansible/19345/3 "2015-09-28T21:37:29Z")

</div>

thanks
