Locust--scalable User Load Testing tool writen in Python (is a python-written, scale-up, extensible test performance tools)
The environmental conditions required to install Locustio are: python2.6+, but Python3 is not supported.
Today in CMD run pip install locustio, error hint:error:invalid command ' Bdist_wheel '.
Cause: The version of Pip and Setuptools is lower.
Solution: Upgrade Pip and Setuptools.
First, upgrade Pip
Ways to upgrade PIP:
Execute in cmd: Pip install--upgrade PIP (the statement is the PIP upgrade itself)
Second, upgrade Setuptools
Ways to upgrade Setuptools:
Method ①: Execute the statement in cmd: Pip install setuptools--upgrade
Method ②: Go to the official website to download the latest Setupools installation package
Https://pypi.python.org/pypi/setuptools Click Downloads, download setuptools-28.7.1.tar.gz ( or other format, download time different version number may be different )
Download the file locally and unzip, and in Cmd enter the directory where the setup.py file is located, execute the Python setup.py install
Thirdly, after the PIP and Setuptools upgrade is complete, reinstall the Locustio
After opening a new cmd, execute pip install Locustio
Iv. finally verify that the Locustio is installed correctly:
Enter Locust--help in cmd, if the message is displayed, it indicates that the Locustio is installed correctly.
Python installation locustio error error:invalid command ' bdist_wheel ' workaround