我正确地重新启动了vagrant VM(ubuntu)。重新启动后,我用来激活virtualenv的ALIAS还没找到。当我手动激活它并尝试使用python时,我得到以下错误:
(virtualenv)vagrant@vagrant-ubuntu-trusty-64:/vagrant$ python
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 0x00007f7c3fc4e740 (most recent call first):
Aborted (core dumped)
这个virtualenv在vagrant共享目录中,一切似乎都在那里。
这是在我更新了manjaro(arch)主机之后发生的。不确定这会如何影响流浪汉......
有关如何解决此问题的任何想法?