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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM