I can no longer install or remove any software using apt-get. When I try I get the error:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: can't initialize sys standard streams
ImportError: No module names 'io'
I tried to reinstall python but that just brings up this error again.
I'm running Raspbian.
Update from comments:
Here is the error log: https://pastebin.com/nXmRTx03
and pip install io
gives me: https://pastebin.com/DtHqfc3n
No module names 'io'
seems to me a very grievious issue.io
is a module upon which many Python-based programs operate.pip install io
might resolve it, if pip isn't dependent uponio
. – user96931 May 24 '19 at 18:58apt
). Aptitude is specific to Debian upon which Raspbian is based. – user96931 May 24 '19 at 19:27pcmanfm /usr/lib/python2.7
. Scroll down, do you seeio.py
? What is there? – user96931 May 24 '19 at 19:39io.py
is present, this is a problem with $PYTHONPATH and/or virtualenv. Virtualenv goes beyond the scope of my expertise (as I'm an avid Python buff) and I won't know how to fix that. However, this information should give others valuable information with which to help you. – user96931 May 24 '19 at 19:55