Requirements.txt must contain a program file for recording all dependent packages and exact version number. If you want to regenerate the virtual environment on another computer, the importance of this document is manifested, for example, a computer program used in the deployment. pip following command can be used to automatically generate the document
pip freeze >requirements.txt
If you want to create a complete copy of the virtual environment, you can create a new virtual environment and run the following command on its:
pip install -r requirements.txt