VOOZH about

URL: https://dev.to/zaphoddev/python-virtual-env-cheat-sheet-4cnh

⇱ Python virtual env cheat sheet - DEV Community


Update: Use uv instead

This is another way to do it, probably sub-optimal:

Setup

python3.6 -m venv venv
source ./venv/bin/activate

Common

(venv) pip install --upgrade pip

Standard

(venv) pip install -r requirements.txt

Optional for poetry

(venv) python -m pip install poetry pip -U
(venv) poetry update
(venv) poetry install
(venv) source .venv/bin/activate

Teardown

deactivate