← 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?
- A.pip install venv
- B.python -m venv .venv
- C.python venv create
- 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 →