What is the purpose of the 'requirements.txt' file when collaborating on a Python project?
Correct answer
C. To list all dependencies required by the project
14 views
C. To list all dependencies required by the project
14 views
The 'requirements.txt' file in a Python project is used to list all the dependencies required by the project. It allows other developers to install the same set of dependencies by running 'pip install -r requirements.txt', ensuring consistency across different development environments.
Not sure why the answer is C? Ask here and get an explanation.