Python installation locustio error error:invalid command ' bdist_wheel ' workaround

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.