Which command is used to create a virtual environment in Python using venv?
Correct answer
D. python -m venv
14 views
D. python -m venv
14 views
The 'python -m venv' command is used to create a virtual environment in Python using the built-in venv module. 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.
Not sure why the answer is D? Ask here and get an explanation.