Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What command do you use to create a requirements.txt file?
Think about how we capture installed packages.
Why is it important to pin versions in requirements.txt?
Consider what happens if different people use different versions.
What command captures all installed packages and their versions?
This command is used to generate requirements files.
True or False: It is best practice to update your requirements.txt file after adding a new library.
Think about how you maintain a list.
You are working on a project that has suddenly failed after updating a library. Describe how you would use requirements.txt to troubleshoot the issue.
What is the first thing to look for in the file?
Your colleague installs your project on their machine and reports errors related to missing libraries. Explain how the requirements.txt file can resolve this.
What command do we use for batch installation?
5 more questions in this section. Enroll free to practise them all.
Enroll free