Skip to content
Sébastien Andreatta edited this page Apr 27, 2026 · 2 revisions

odev venv

venv demo

Interact with virtual environments created and managed by Odev.

Usage

odev venv [-v {CRITICAL,ERROR,WARNING,INFO,DEBUG,DEBUG_SQL,NOTSET}] [-h] [-f] [-V VERSION] [-c COMMAND] [-l] [-C] [-r] [-s] [name]

Aliases

virtualenv

Arguments

Positional Arguments:

Argument Description
name Name of the virtual environment to activate, or a local Odoo database to select the virtual environment it is linked to.

Optional Arguments:

Argument Description
-v, --log-level Set logging verbosity for the execution of odev.
-h, --help Show help for the current command.
-f, --force Bypass confirmation prompts and assume a default value to all, use with caution!
-V, --version Python version to use for the virtual environment.
-c, --command Python command to execute in the context of the virtual environment.
-l, --list List virtual environments and their properties.
-C, --create Create a new virtual environment.
-r, --remove Remove an existing virtual environment.
-s, --switch Switch the python version used by an existing virtual environment.

Examples

Show help

odev venv --help

List all virtual environments

odev venv --list

Create a venv for a specific Odoo version

odev venv --create 18.0

Run a command inside a venv

odev venv -c "pip list" 18.0

Remove a venv

odev venv --remove 17.0

Clone this wiki locally