Error when installing PIP

I am installing bahmni on a fresh Centos 7.6 installation following this documentation but I am already running into errors.

When I run pip install --upgrade pip I get below message

sudo: pip: command not found

I then used the command sudo yum install python-pip after which running pip install --upgrade pip gave below error message

Collecting pip
  Downloading (2.1MB)
    100% |████████████████████████████████| 2.1MB 609kB/s
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-eA_d2s/pip/", line 7
        def read(rel_path: str) -> str:
    SyntaxError: invalid syntax

Command "python egg_info" failed with error code 1 in /tmp/pip-build-eA_d2s/pip/
You are using pip version 8.1.2, however version 23.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

This is pip and python related issue, not specific to odoo. I think the version difference are too faraway for straightforward upgrade. maybe you can try fresh install latest pip from your distribution package manager, in this case yum in Centos.