Python update requirements txt code example Example: how to update requirements.txt pip freeze > requirements.txt