how to check all pip installed packages in python code example Example: list all packages installed with pip pipenv lock -r