mac下locust的安装
一、locust介绍
二、安装
1. 先安装python
安装命令:brew install python3
2. 安装locust
pip3 install locust
3. 检查locust是否安装成功
1)检查locust安装信息
pip3 show locust
1 Name: locust 2 Version: 2.29.0 3 Summary: Developer-friendly load testing framework 4 Home-page: 5 Author: 6 Author-email: 7 License: MIT 8 Location: /Users/hxq/Library/Python/3.9/lib/python/site-packages 9 Requires: ConfigArgParse, flask, Flask-Cors, Flask-Login, gevent, geventhttpclient, msgpack, psutil, pyzmq, requests, tomli, Werkzeug 10 Required-by:
2)查询locust版本
locust -V
报错:zsh: permission denied: locust
采取措施:添加环境变量
echo 'export PATH="/Users/hxq/Library/Python/3.9/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
再次执行 locust -V
1 /Users/hxq/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020 2 warnings.warn( 3 locust 2.29.0 from /Users/hxq/Library/Python/3.9/lib/python/site-packages/locust (Python 3.9.6, LibreSSL 2.8.3)
标签:Python,locust,Library,python,mac,安装,3.9 From: https://www.cnblogs.com/hld123/p/18247555