pip freeze

List installed packages in requirements format. More information: https://pip.pypa.io/en/stable/cli/pip_freeze.

pip freeze

pip freeze > requirements.txt

pip freeze --local > requirements.txt

pip freeze --user > requirements.txt

pip freeze --all > requirements.txt