virtualenv Python brach nach dem Upgrade von Ubuntu 15.10 auf 16.04

Ich hatte Python 3.4 in meinem virtualenv, aber nach dem Upgrade von Ubuntu auf 16.04 wurde Python auf 3.5 aktualisiert, sodass Python in virtualenv mit den folgenden Fehlern abstürzt:

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'

Current thread 0x00007f2f2dbcb700 (most recent call first):
fish: “python” terminated by signal SIGABRT (Abort)

Wie kann ich es reparieren

Antworten auf die Frage(10)

Ihre Antwort auf die Frage