1. 程式人生 > >報錯:/usr/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader'

報錯:/usr/bin/python: Error while finding module specification for 'virtualenvwrapper.hook_loader'

ubuntu14安裝python3後,開啟命令列介面總會提示:
/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.

有的文章說修改.bashrc中的VIRTUALENVWRAPPER_PYTHON,之後執行source .bashrc。這個方法對我本機沒有起作用
之後查詢: