我正试图在Ubuntu 14.04上跟随如何使用uWSGI和Nginx服务Django应用程序而我在早期阶段失败,由于输出量的原因,我将所有相关信息放入Pastebin.com - #1粘贴工具自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:~#
Run Code Online (Sandbox Code Playgroud)
我正在追问如何磨牙,我做错了什么?
我有一段时间没有触及python和virtualenv,我相信我用virtualenv和pip设置我的MBP,但是完全忘记了这些东西是如何工作的.
安装Lion之后,当我打开一个新的终端窗口时,我收到此错误:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named virtualenvwrapper.hook_loader
virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is set properly.
Run Code Online (Sandbox Code Playgroud)
有关如何解决此问题的任何提示?
试:
easy_install eventlet
我懂了:
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 2607, in <module>
parse_requirements(__requires__), Environment()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line …Run Code Online (Sandbox Code Playgroud)