Python lab for pre-requisite not working

hi, i am trying to solve the lab for python flask. but getting error.
thor@host01 /opt/simple-webapp-flask$ sudo pip install -r requirements.txt
Traceback (most recent call last):
File “/bin/pip”, line 9, in
load_entry_point(‘pip==21.0.1’, ‘console_scripts’, ‘pip’)()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2566, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/site-packages/pkg_resources.py”, line 2260, in load
entry = import(self.module_name, globals(),globals(), [‘name’])
File “/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py”, line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax

Hi @abusaleh_02 , can you share the output of:

pip --version

Regards,
Vitor Jr.
KodeKloud Support