What is the purpose of a virtual environment in Python?
Correct answer
B. To isolate Python dependencies for different projects
22 views
B. To isolate Python dependencies for different projects
22 views
A virtual environment in Python is a self-contained directory that contains a Python installation and its own set of libraries. It allows developers to isolate dependencies for different projects, preventing conflicts between packages and ensuring that each project has access to the required libraries without affecting the system-wide Python installation.
Not sure why the answer is B? Ask here and get an explanation.