python see list of installed packages code example Example: list all packages installed with pip pipenv lock -r