🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Modules and Libraries: all 14 questions

Quiz: Modules and Libraries · Question 4 of 14

Which command creates a virtual environment named .venv?

Which command creates a virtual environment named .venv?

  1. A.pip install venv
  2. B.python -m venv .venv
  3. C.python venv create
  4. D.pip venv .venv
Answer & explanation

Correct answer: python -m venv .venv

python -m venv <folder> creates an isolated environment.

Can you get the rest right without peeking?

Take the timed Quiz: Modules and Libraries quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →