一、环境部署
当前环境:
Python环境python3.7
mac系统(版本10.14.6/10.15.7)
二、安装locust
1、方法一
pip3 install locustio (pip安装提示无pip,各种错误提示信息)及安装失败
报错信息如下:
ERROR: Failed building wheel for locustio
2、方法二
从GitHub项目地址:https://github.com/locustio/locust
下载解压之后,在终端 cd 到项目路径,执行:python3 setup.py install
安装完成之后提示信息:Finished processing dependencies for locust==1.5.3(可以明确当前的locust版本为:1.5.3)
如若安装报错提示:Permission denied: '/usr/local/lib/python3.7/site-packages/easy-install.pth'