Create an individual virtual environment
- Go to project directory and Create a virtual environment using
python -m venv venv
- Type
venv\Scripts\activate.bat
and hit enter - Create a requirements.txt file and add the required library. For Ex: To install locust, add locust==2.24.0 in the file. (This i have added alerady)
- Run the command to install the library.
pip install -r requirements.txt
. - Run the application
locust -f getorder.py