当前位置: 动力学知识库 > 问答 > 编程问答 >

python - How does one run Spawning with Django within a 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?

网友答案:

The following five commands worked without any problems. How are you installing spawning?

virtualenv test
cd test/
. bin/activate
easy_install spawning
python -c 'import spawning'
分享给朋友:
您可能感兴趣的文章:
随机阅读: