Multiple and broken python installations broke my Ubuntu 17.04. Utilities like command-not-found, synaptic package manager, update manager etc are not working. I know that it is due to python, but I can't figure out the default
Whenever I type an unknown command I get this error
Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x00007f21fda8c700 (most recent call first): Aborted (core dumped)
It all happened because of a broken package.
Help would be really appreciated.