1. Install Python (3.9 or later)

  2. Install the package (check the wiki if the installation fails)

$ pip3 install locust
  1. Validate your installation

$ locust -V
locust 2.28.0 from /usr/local/lib/python3.10/site-packages/locust (python 3.10.6)
  1. Done! Now you can create your first test

Pre-release builds

If you need the latest and greatest version of Locust and cannot wait for the next release, you can install a dev build like this:

$ pip3 install -U --pre locust

Pre-release builds are published every time a branch/PR is merged into master.

Install for development

If you want to modify Locust, or contribute to the project, see Developing Locust.