Python 2.7 在virtualenv中使用Python 2.7.3从greenlet导入恐怖

Python 2.7 在virtualenv中使用Python 2.7.3从greenlet导入恐怖,python-2.7,compiler-errors,pip,installation,locust,Python 2.7,Compiler Errors,Pip,Installation,Locust,我安装了locustio pip install locustio 安装后,我尝试运行 locust --help 但我得到了以下错误: Traceback (most recent call last): File "/home/vagrant/.virtualenvs/chalktalk-legacy/bin/locust", line 7, in <module> from locust.main import main File "/home/vagran

我安装了locustio

pip install locustio
安装后,我尝试运行

locust --help
但我得到了以下错误:

Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/chalktalk-legacy/bin/locust", line 7, in <module>
    from locust.main import main
  File "/home/vagrant/.virtualenvs/chalktalk-legacy/local/lib/python2.7/site-packages/locust/__init__.py", line 1, in <module>
    from core import HttpLocust, Locust, TaskSet, task
  File "/home/vagrant/.virtualenvs/chalktalk-legacy/local/lib/python2.7/site-packages/locust/core.py", line 1, in <module>
    import gevent
  File "/home/vagrant/.virtualenvs/chalktalk-legacy/local/lib/python2.7/site-packages/gevent/__init__.py", line 49, in <module>
    from gevent.hub import get_hub, iwait, wait, PYPY
  File "/home/vagrant/.virtualenvs/chalktalk-legacy/local/lib/python2.7/site-packages/gevent/hub.py", line 11, in <module>
    from greenlet import greenlet, getcurrent, GreenletExit
ImportError: /home/vagrant/.virtualenvs/chalktalk-legacy/local/lib/python2.7/site-packages/greenlet.so: undefined symbol: _PyTrash_thread_deposit_object
回溯(最近一次呼叫最后一次):
文件“/home/vagrant/.virtualenvs/chalktalk legacy/bin/蝗虫”,第7行,在
从蝗虫。主要进口
文件“/home/vagrant/.virtualenvs/chalktalk legacy/local/lib/python2.7/site-packages/hocust/_-init___.py”,第1行,在
从核心导入HttpOccast、Occast、任务集、任务
文件“/home/vagrant/.virtualenvs/chalktalk legacy/local/lib/python2.7/site packages/hocust/core.py”,第1行,在
导入gevent
文件“/home/vagrant/.virtualenvs/chalktalk legacy/local/lib/python2.7/site packages/gevent/_init__.py”,第49行,在
从gevent.hub导入get_hub、iwait、wait、PYPY
文件“/home/vagrant/.virtualenvs/chalktalk legacy/local/lib/python2.7/site packages/gevent/hub.py”,第11行,在
从greenlet导入greenlet、getcurrent、GreenletExit
ImportError:/home/vagrant/.virtualenvs/chalktalk legacy/local/lib/python2.7/site-packages/greenlet.so:未定义的符号:\u PyTrash\u thread\u deposit\u object
重建gevent的解决方案是什么?如果是这样的话,如何用python 2.7.3在debian virtualenv中重建greenlet?如果不是,我如何在不升级python的情况下解决这个问题