伙计们,尝试使用最新的 amazon linux 在 AWS 中设置 Locust。安装 locust 后,我在主模式下启动时得到以下信息:
locust -f foo.py --master
Traceback (most recent call last):
File "/usr/bin/locust", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=2.4.1
对此最优雅的解决方法是什么?谢谢
好吧,如果有人在乎,将 python 升级到 v 2.7 可以解决我的问题:
http://www.lecloud.net/post/61401763496/install-update-to-python-2-7-and-latest-pip-on-ec2