locust安装(性能测试)

python开源的性能测试框架locust

 

环境python3.7

mac 10.12

安装locust:


方法一:pip3 install locustio (因为该方式总是安装失败,所以用的是方法二)

 

 


方法二(推荐python3使用):

从GitHub项目地址:https://github.com/locustio/locust

 

 

下载解压后,在终端 cd 到项目路径,执行:python3 setup.py install

 

 

 

 

 

 

 

 可看出安装的版本是 locustio 0.14.5

 

如果安装报错Permission denied: '/usr/local/lib/python3.7/site-packages/easy-install.pth'

说明是权限的问题,需要加上sudo

sudo python3 setup.py install

  

验证是否安装成功:locust --help

 

 

 

 实例

httprunner3.x--性能测试(locust)

 

注:如果未来可能运行Locust 分布在多个进程/机器,建议安装pyzmq:pip3 install pyzmq

  

pyzmq的版本是19.0.0

 

posted @ 2020-03-15 15:15  yimu-yimu  阅读(1306)  评论(0编辑  收藏  举报