Win10系统cmd窗口安装Locust报错的坎坷之路

问题1:cmd窗口安装Loust报错

You are using pip version 9.0.3, however version 20.1.1 is available. You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.

您使用pip版本9.0.3,然而版本20.1.1是可利用的。 您应该考虑升级通过python -m pip install --upgrade pip’命令。

解决方法:更新pip版本。

python -m pip install --upgrade pip

问题2:pip版本装好之后,继续安装locust,然鹅又报错了

pip install locustio

解决方法:通过咨询大神,告诉我0.99有bug,需要换个版本

pip install locustio==0.13.5 -i https://pypi.tuna.tsinghua.edu.cn/simple

解决方法:换了阿里云的镜像

pip install locustio==0.13.5 -i https://mirrors.aliyun.com/pypi/simple/

问题4:不卡了,但是安装的时候又双叒报错了。

ERROR: Failed building wheel for gevent Failed to build gevent ERROR: Could not build wheels for gevent which use PEP 517 and cannot be installed directly

解决方法:缺少个VC类库,关闭杀毒程序,安装vc类库后,重启系统,再次安装locust。

最后,检查locust是否安装成功

locust --help

热泪盈眶

经验分享 程序员 微信小程序 职场和发展