pip freeze Django=<3.0.9999 > requirements.txt code example
Example: pip freeze
$ env1/bin/pip freeze > requirements.txt
$ env2/bin/pip install -r requirements.txt
$ env1/bin/pip freeze > requirements.txt
$ env2/bin/pip install -r requirements.txt