filter 20.2 version from output of pip3 --verison code example Example 1: list all packages installed with pip pipenv lock -r Example 2: list all pip packages pip3 freeze