Keeping track of a virtual environment's requirements via pip freeze is simple.
pip freeze > requirements.txt
Currently, however, whenever a new package is added to the venv, it needs to be added to the requirements file manually. To do so, I usually just run the freeze command again and pipe it into the requirements file, but sometimes I forget to run this command, and this can be troublesome especially in repositories across different locations whenever I have to remember which packages I need to install!
Whenever a new package is installed in a virtual environment, is there any way to automatically update a requirements.txt file automatically to include this new package?