How to

  • Create a new virtual environment venv
python3 -m venv venv
  • Activate a virtual environment
source venv/bin/activate

To confirm the virtual environment is activated, check the location of your Python interpreter:

which python

# /Users/dennis.dao/workspace/sample/locust-test/venv/bin/python