[Python] Python and pip installation on Mac don't show version?

Discussão em 'Python' iniciado por Stack, Janeiro 23, 2025.

  1. Stack

    Stack Membro Participativo

    On Mac OS.

    Downloaded the Python from their website.

    Python -V return Python 2.7.16, and python3 -V return Python 3.9.4

    Installed pip with : python3 get-pip.py, got Successfully installed pip-21.0.1

    But when I run pip -V I get File "/usr/local/bin/pip", line 1.... SyntaxError: invalid syntax

    After reading here a lot, i could not understand (in simple words for dumbs) :

    1. How could you "alias" or update python to show/run in version 3+ ?
    2. Why I can't get the pip version if it's installed ?

    Continue reading...

Compartilhe esta Página