3

我安装了 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

是重建gevent的解决方案吗?如果是这样,如何使用 python 2.7.3 在 debian virtualenv 中重建 greenlet?如果没有,我如何在不升级 python 的情况下解决这个问题?

4

0 回答 0