pip list installed packages and versions code example Example: list all packages installed with pip pipenv lock -r