将 Python 更新为 3.6 后,Virtualenvwrapper 未初始化

Virtualenvwrapper does not initialize after updating Python to 3.6

我的 OS (Arch Linux) 最近将 Python 从 3.5.2 更新到 3.6.0,现在 运行 任何终端我都会收到此消息:

/usr/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')
virtualenvwrapper.sh: There was a problem running the initialization hooks. 

If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.

而且我得到了这些输出

$ whereis python
python: /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python3.6-config /usr/bin/python3.6m-config /usr/bin/python2.7-config /usr/bin/python /usr/bin/python2.7 /usr/lib/python3.6 /usr/lib/python3.5 /usr/lib/python2.7 /usr/include/python3.6m /usr/include/python2.7 /usr/share/man/man1/python.1.gz

$ which python
/usr/bin/python

$ python --version
Python 3.6.0

我该如何解决这种情况?这种情况会对我创建的虚拟环境或其他程序产生影响吗?

提前致谢。

这个article对解决这个问题很有用,你只需要运行:

$ sudo pip3.6 install -U pip
$ sudo pip3.6 install -U virtualenvwrapper