安装蝗虫.io错误(退出状态2失败)

2024-04-19 23:14:42 发布

您现在位置:Python中文网/ 问答频道 /正文

我试过两个命令:

^{1}$

两者的结果如下所示:


^{pr2}$

Tags: 命令pr2
3条回答

您可能安装了一个不受rocastio支持的python版本。到目前为止,python2.7、3.4、3.5和3.6都支持ropostio。如果您有较新版本的python(例如python3.7),安装将失败。在

我也遇到了类似的问题,但是在运行时出现了exit code 1pip install locustio。在

我可以确认在python3.7.0上失败,但它在python3.6.7上可以正常工作,没有错误,所以这只是版本兼容性问题

从蝗虫文件:

On Windows, running pip install locustiomight fail depedning on if you have a build environment set up correctly. In that case, the easiest way to get Locust running on windows is to first install the pre built binary package for pyzmq (and possibly for gevent and greenlet as well).

You can find an unofficial collection of pre built python packages for windows here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

When you’ve downloaded a pre-built .whl file, you can install it with:

pip install pyzmq‑16.0.2‑cp36‑cp36m‑win32.whl

Once you’ve done that you should be able to just: pip install locustio

相关问题 更多 >