python packages list installed code example Example 1: pip packages list pip list [options] Example 2: list all packages installed with pip pipenv lock -r