[Python] pip2 installation on Ubuntu 20.04

Discussão em 'Python' iniciado por Stack, Março 15, 2025.

  1. Stack

    Stack Membro Participativo

    After succesfully installing Python 2 on Ubuntu 20.04 (Focal Fossa) with:

    sudo apt install python2


    I downloaded get-pip.py from https://bootstrap.pypa.io/get-pip.py sha256: ffb67da2e976f48dd29714fc64812d1ac419eb7d48079737166dd95640d1debd

    Running:

    sudo python2 get-pip.py


    Traceback (most recent call last):
    File "get-pip.py", line 24226, in
    main()
    File "get-pip.py", line 199, in main
    bootstrap(tmpdir=tmpdir)
    File "get-pip.py", line 82, in bootstrap
    from pip._internal.cli.main import main as pip_entry_point
    File "/tmp/tmp6DHWFv/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
    ^
    SyntaxError: invalid syntax
    ​

    Continue reading...

Compartilhe esta Página