1. Home
  2. Data Science
  3. Python
  4. What is the purpose of the 'venv' module in Python?

Added 10 Feb 2024

What is the purpose of the 'venv' module in Python?

  1. To manage virtual environments Correct answer
  2. To install Python packages
  3. To compile Python source code
  4. To execute Python scripts

Correct answer

A. To manage virtual environments

17 views

MCQSEXAM

Explanation

The 'venv' module in Python is used to create and manage virtual environments. It provides tools for creating isolated environments with their own Python interpreter and set of libraries, allowing you to install and manage dependencies separately for each project.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs