Ctrl K
Python · Junior · Theory

Why do you need virtual environments in Python, and how do you manage a project's dependencies?

~4 min by voice

How to approach it

The interviewer wants to see whether you understand why a project's dependencies need to be isolated, and whether you can make the install reproducible: describe the dependencies in a file, pin the versions and keep the environment out of the repository.

Have you seen this question in a real interview?
Answers0
Avg. score—
Strong—
Practiced0
Topics
Similar questionsYour deploy failed: the build pulled in a new minor version of a transitive dependency, and it broke the API. How would you set up dependency and environment management so this doesn't happen again? Mid-levelA company has thirty Python services and several shared internal libraries. How would you organize dependency management, library versioning and Docker image builds? Senior

Answer by voice

The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.

Sign in to answer

Best with headphones · ~4 min