I have used the python virtual environment (virtualenv) successfully for some time. I just upgraded to the new version of Ubuntu and it ruined my environment. I got the impression that the virtual person was self-sufficient, but apparently I was wrong. :)
Here's the error:
Could not find platform independent libraries <prefix> 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 ImportError: No module named 'encodings' Aborted (core dumped)
I thought that maybe this is due to the fact that Ubuntu changed from Python 3.4 to 3.5, so I tried to change the version I use with
virtualenv --python=/usr/bin/python3.5 py3default
but it will not update Python for me.
Note: this one looks like a duplicate, but has no solution yet.
source share