title: Why would you create a requirements.txt file in a virtual environment in Python?
body: <p>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?</p>