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