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