how to get a list of installed python packages code example Example: list all packages installed with pip pipenv lock -r