requirement pip freeze python generate code example
Example 1: how to update requirements.txt
pip freeze > requirements.txt
Example 2: pip freeze requirements.txt
$ env1/bin/pip freeze > requirements.txt
$ env2/bin/pip install -r requirements.txt