Skip to content

Python 2.7 get-pip.py needs a versioned link now #376

@ursetto

Description

@ursetto

It seems around January 2021 the unversioned get-pip.py became incompatible with Python 2.7.

Installing pip from https://bootstrap.pypa.io/get-pip.py...
Traceback (most recent call last):
  [...]
  File "/tmp/tmpLaSVe5/pip.zip/pip/_internal/cli/main.py", line 60
    sys.stderr.write(f"ERROR: {exc}")
                                   ^
SyntaxError: invalid syntax
error: failed to install pip via get-pip.py

To fix this I think the 2.7 URL, https://bootstrap.pypa.io/2.7/get-pip.py needs to be added in the area below, just as in pyenv PR pyenv/pyenv#1793 (commit pyenv/pyenv@189afa8).

GET_PIP_URL="https://bootstrap.pypa.io/2.6/get-pip.py"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions