Here pip 21.0 dropped support for Python 2 and 3.5. The later versions require Python 3.6+. To install pip for Python 2.7 install it from https://bootstrap.pypa.io/pip/2.7/. The last command is to upgrade to the latest supported version. For Python 2.7 the latest supported is currently pip 20.3.4.