pip install locustio 安装 locustio
使用pip安装时可能会遇到:ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly
原因:可能时版本太高版本不匹配,导致无法安装
解决方法;
安装低版本的locust: pip install locustio<0.13.2
或者进入pycharm👉Settings👉Project Interpreter,点击右侧+号搜索locust或者locustio
选择低版本的安装,就安装成功了。
打开locust的web界面,浏览器访问:http://127.0.0.1:8089 或 localhost:8089