如何在 virtualenv 中使用 Django 运行 Spawning?
由于 Spawning 所依赖的 Eventlet 自行安装的方式,它无法安装到 virtualenv 中。以下错误(为了便于阅读而进行了包装)说明:
Running eventlet-0.9.4/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-m_s75o/eventlet-0.9.4/egg-dist-tmp-fAZK_u
error: SandboxViolation: chmod('/home/myuser/.python-eggs/\
greenlet-0.2-py2.6-linux-i686.egg-tmp/tmpgxa_uc.$extract', 493) {}
如果不修补无法识别的 Python 路径,并全局安装 Spawning(无论如何,这都会破坏 virtualenv 的全部意义),那么如何安装/运行它?
Because of the way Eventlet, which Spawning depends on, installs itself, it can't be installed into a virtualenv. The following error (wrapped for readability) illustrates:
Running eventlet-0.9.4/setup.py -q bdist_egg --dist-dir \
/tmp/easy_install-m_s75o/eventlet-0.9.4/egg-dist-tmp-fAZK_u
error: SandboxViolation: chmod('/home/myuser/.python-eggs/\
greenlet-0.2-py2.6-linux-i686.egg-tmp/tmpgxa_uc.$extract', 493) {}
Without patching the Python path beyond all recognition, and installing Spawning globally (which would break the whole point of having a virtualenv anyway), how would one install/run this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下五个命令运行没有任何问题。你是如何安装spawning的?
The following five commands worked without any problems. How are you installing spawning?