Create Python virtual environment

Python

Create and activate an isolated Python environment.

  1. 1

    Create venv

    python -m venv .venv
  2. 2

    Activate macOS/Linux

    source .venv/bin/activate
  3. 3

    Install requirements

    pip install -r requirements.txt

Related commands: python -m venv, pip install