Why would you create a requirements.txt file in a virtual environment in Python?

Viewed 2245

I downloaded a Python project and it contains both a virtual environment and a requirements.txt file. Why would you need both? As far as I know, virtual environments already contain the required modules. Any idea when and why this combination would be useful?

2 Answers
Related