Steps to run the script Run this command to create virtual environment python3 -m venv locustenv Run source locustenv/bin/activate Install locust using this command pip3 install locust Run locust -f locustfile.py