Tutor install from source - error in PyYAML lib


When we try ‘pip install -e .’ from master branch, got below error from PyYAML lib.

“ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.”

How to fix:

sudo -H pip3 install --ignore-installed PyYAML and re-run ‘pip install -e .’

Which repo is this for?

It sounds like you might have a conflict with system-managed Python packages. Generally for any Open edX repo you’ll want to work in a virtualenv.