新年
环境:Ubuntu 18.04
错误信息:
/usr/bin/python: 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.
解决方法:在终端中
重新添加python有关的环境变量:
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export VIRTUALENVWRAPPER_VIRTUALENV=/usr/local/bin/virtualenv
完整环境变量
作者:飛跑的鉿瑪
链接:https://www.jianshu.com/p/a79ce5611501
来源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。