pip needs to be installed

760 views
Skip to first unread message

Punit Ramaji

unread,
Apr 16, 2020, 5:51:22 AM4/16/20
to Ansible Project
I am getting below error, when I try to pip: name=pip state=latest
TASK [install : Upgrade pip] ***************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any of pip2, pip to use.  pip needs to be installed."}
        to retry, use: --limit

Mauricio Tavares

unread,
Apr 16, 2020, 5:58:31 AM4/16/20
to ansible...@googlegroups.com
Is pip already installed in target machine?

> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9fea132f-6939-48da-b3f9-ba005097c528%40googlegroups.com.

Punit Ramaji

unread,
Apr 16, 2020, 6:07:51 AM4/16/20
to Ansible Project
Yes, I am trying to upgrade it. But it is failing. 


On Thursday, 16 April 2020 15:28:31 UTC+5:30, Mauricio Tavares wrote:
On Thu, Apr 16, 2020 at 5:51 AM Punit Ramaji <punit...@gmail.com> wrote:
>
> I am getting below error, when I try to pip: name=pip state=latest
> TASK [install : Upgrade pip] ***************************************************
> fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any of pip2, pip to use.  pip needs to be installed."}
>         to retry, use: --limit
>
      Is pip already installed in target machine?

> --
> 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...@googlegroups.com.

Stefan Hornburg (Racke)

unread,
Apr 16, 2020, 6:10:54 AM4/16/20
to ansible...@googlegroups.com
On 4/16/20 12:07 PM, Punit Ramaji wrote:
> Yes, I am trying to upgrade it. But it is failing.

Which version of Python do you use on the target machine? Where is pip installed exactly?

Regards
Racke

>
> On Thursday, 16 April 2020 15:28:31 UTC+5:30, Mauricio Tavares wrote:
>
> On Thu, Apr 16, 2020 at 5:51 AM Punit Ramaji <punit...@gmail.com <javascript:>> wrote:
> >
> > I am getting below error, when I try to pip: name=pip state=latest
> > TASK [install : Upgrade pip] ***************************************************
> > fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any of pip2, pip to use.  pip needs to be
> installed."}
> >         to retry, use: --limit
> >
>       Is pip already installed in target machine?
>
> > --
> > 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...@googlegroups.com
> <javascript:>.
> <https://groups.google.com/d/msgid/ansible-project/9fea132f-6939-48da-b3f9-ba005097c528%40googlegroups.com>.
>
> --
> 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 <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Punit Ramaji

unread,
Apr 16, 2020, 6:13:23 AM4/16/20
to Ansible Project
python --version
Python 2.7.16
whereis pip
pip: /usr/local/bin/pip2.7 /usr/local/bin/pip

On Thursday, 16 April 2020 15:40:54 UTC+5:30, Stefan Hornburg (Racke) wrote:
On 4/16/20 12:07 PM, Punit Ramaji wrote:
> Yes, I am trying to upgrade it. But it is failing.

Which version of Python do you use on the target machine? Where is pip installed exactly?

Regards
        Racke

>
> On Thursday, 16 April 2020 15:28:31 UTC+5:30, Mauricio Tavares wrote:
>
>     On Thu, Apr 16, 2020 at 5:51 AM Punit Ramaji <punit...@gmail.com <javascript:>> wrote:
>     >
>     > I am getting below error, when I try to pip: name=pip state=latest
>     > TASK [install : Upgrade pip] ***************************************************
>     > fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to find any of pip2, pip to use.  pip needs to be
>     installed."}
>     >         to retry, use: --limit
>     >
>           Is pip already installed in target machine?
>
>     > --
>     > 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...@googlegroups.com
>     <javascript:>.
>     > To view this discussion on the web visit
>     https://groups.google.com/d/msgid/ansible-project/9fea132f-6939-48da-b3f9-ba005097c528%40googlegroups.com
>     <https://groups.google.com/d/msgid/ansible-project/9fea132f-6939-48da-b3f9-ba005097c528%40googlegroups.com>.
>
> --
> 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

Stefan Hornburg (Racke)

unread,
Apr 16, 2020, 6:26:55 AM4/16/20
to ansible...@googlegroups.com
On 4/16/20 12:13 PM, Punit Ramaji wrote:
> python --version
> Python 2.7.16
> whereis pip
> pip: /usr/local/bin/pip2.7 /usr/local/bin/pip
>

Please try pip: name=pip state=latest executable=/usr/local/bin/pip
> > ansible...@googlegroups.com <javascript:> <mailto:ansible-proje...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com>
> >
> <https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/ansible-project/085344f6-fa0a-4b8c-821a-abc1fdf6ec3a%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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 <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e38fdd60-4b14-471e-9b4e-d321c87d152a%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e38fdd60-4b14-471e-9b4e-d321c87d152a%40googlegroups.com?utm_medium=email&utm_source=footer>.
signature.asc
Reply all
Reply to author
Forward
0 new messages