yes there is a command for this, as soon as you want to deploy, you can generate the package file using the following command:
pip freeze > requirements.txt
and whenever you want to install packages from the same file, use:
pip install -r requirements.txt
you can find more information about freeze here
Allen fernandes
source share