how to setup pytest code example Example 1: install pytest pip install pytest Example 2: pytest installation windows pip install -U pytest