On Fri, 7 Jul 2017 13:45:42 +0200 Fernando Santagata < [email protected]> wrote: > [...] > Could not find platform independent libraries <prefix> > Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] > Fatal Python error: Py_Initialize: Unable to get the locale encoding > LookupError: no codec search functions registered: can't find encoding > > Current thread 0x00007fc5bafe9700 (most recent call first): > Aborted > E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an > error code (1) > E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10 > > Everything was working fine up to last week, when an apt update/apt > dist-upgrade left my computer like that. > > [...]
I had a similar problem. If your directory "/usr/lib/python3.5/encodings" is empty, you must reinstall this package: # apt-get install --reinstall libpython3.5-minimal Then you'll have that directory (encondings/) filled with files, and python3 must work again. Greetings

