系统:macOS Catalina 10.15.5。
locust需要提前安装配置好python3.6及以上版本,具体操作网上很多也没什么坑。
1.先尝试使用pip命令安装
python3 -m pip install locustio
显示:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None,
status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1,
'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed
certificate in certificate chain (_ssl.c:1123)'))': /simple/locustio/
2.尝试在github(https://github.com/locustio/locust)上下载
下载压缩包到任意路径然后运行
python3 setup.py install
进行安装,失败,显示某个包下载失败并且找不到替代的。
error: Could not find suitable distribution for Requirement.parse('Flask-BasicAuth>&