Which standard command is used to create a virtual environment in Python 3?
Nopal Securities technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Which standard command is used to create a virtual environment in Python 3?
Show answer & explanation
Answer: A. python3 -m venv env to create an isolated environment.
The built-in venv module in Python 3 is invoked via python3 -m venv
Step-by-step Derivation:
Step 1: Python 3 ships with the standard library venv module invoked with python3 -m venv.