1. Home
  2. Data Science
  3. Python
  4. Which command is used to create a virtual environment in…

Added 10 Feb 2024

Which command is used to create a virtual environment in Python using virtualenv?

  1. createenv
  2. venv
  3. mkvirtualenv
  4. virtualenv Correct answer

Correct answer

D. virtualenv

17 views

MCQSEXAM

Explanation

The 'virtualenv' command is used to create a virtual environment in Python using the virtualenv package. It creates a new directory containing a Python interpreter and a copy of the standard Python library, allowing you to install and manage dependencies separately for each project.

Doubts & discussion

Not sure why the answer is D? 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