python3 -m venv .venv

Category: Python & pip

python3 -m venv .venv

Create a virtual environment in the .venv directory

Creates a virtual environment (isolated Python environment) in the .venv directory.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.