我试图遵循How To Serve Django Applications with uWSGI and Nginx on Ubuntu 14.04并且我在最初的阶段失败,由于输出量的原因,我将所有相关信息放入Pastebin.com – #1 paste tool since 2002!.
实际错误:
root@alexus:~# echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bashrc
root@alexus:~# source ~/.bashrc
/usr/bin/python3: Error while finding spec for 'virtualenvwrapper.hook_loader' (<class 'ImportError'>: 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/python3 and that PATH is
set properly.
root@alexus:~#
我正在追问如何磨牙,我做错了什么?
解决方法:
感谢@Alexander,我能够通过更改来解决我的问题:
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
至
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
由于向后兼容性.