python3 -m venv venv

Category: Python & pip

python3 -m venv venv

Create a virtual environment in a 'venv' directory

Creates an isolated Python environment in a 'venv' folder. A virtual environment keeps your project's packages separate from other projects.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.