Open edX install: "SyntaxError: invalid syntax"

I am installing Open edX devstack for local machine through Ubuntu vm. but getting the following error after running the command make dev.provision

++ docker-compose exec lms bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && NO_PYTHON_UNINSTALL=1 paver install_prereqs'
Traceback (most recent call last):
  File "/edx/app/edxapp/venvs/edxapp/bin/paver", line 8, in <module>
    sys.exit(main())
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/paver/tasks.py", line 890, in main
    _launch_pavement(args)
  File "/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/paver/tasks.py", line 858, in _launch_pavement
    exec(compile(source, environment.pavement_file, 'exec'), mod.__dict__)
  File "pavement.py", line 14, in <module>
    from pavelib import *
  File "/edx/app/edxapp/edx-platform/pavelib/__init__.py", line 4, in <module>
    from . import (
  File "/edx/app/edxapp/edx-platform/pavelib/prereqs.py", line 121
    print '{cache} unchanged, skipping...'.format(cache=cache_name)
          ^
SyntaxError: invalid syntax
make: *** [Makefile:44: dev.provision.run] Error 1

Hi

Can you check if OPENEDX_RELEASE is set correctly ?

This might happen if there are some version related issues.