How to fix syntax error in Open edX with Ubuntu 16.04

fatal: destination path ‘configuration’ already exists and is not an empty directory.
HEAD is now at ad2a155… Have to pin analytics code to the right version
You are not currently on a branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

git pull <remote> <branch>

Traceback (most recent call last):
File “/usr/local/bin/pip”, line 9, in
load_entry_point(‘pip==21.0.1’, ‘console_scripts’, ‘pip’)()
File “/usr/lib/python2.7/dist-packages/pkg_resources/”, line 542, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File “/usr/lib/python2.7/dist-packages/pkg_resources/”, line 2569, in load_entry_point
return ep.load()
File “/usr/lib/python2.7/dist-packages/pkg_resources/”, line 2229, in load
return self.resolve()
File “/usr/lib/python2.7/dist-packages/pkg_resources/”, line 2235, in resolve
module = import(self.module_name, fromlist=[‘name’], level=0)
File “/usr/local/lib/python2.7/dist-packages/pip/_internal/cli/”, line 60
sys.stderr.write(f"ERROR: {exc}")
SyntaxError: invalid syntax
sudo: ansible-playbook: command not found

It will be easier to help if you provide details like the environment variables you defined to install the software, and the complete logs (in a pastebin)