Command line¶
virtualenv is primarily a command line application. All options have sensible defaults, and there is one required
argument: the name or path of the virtual environment to create.
See Use virtualenv for how to select Python versions, configure defaults, and use environment variables.
Command line options¶
virtualenv [OPTIONS]
Named Arguments |
||
'==SUPPRESS==' |
display the version of the virtualenv package and its location, then exit |
|
False |
on failure also display the stacktrace internals of virtualenv |
|
False |
use app data folder in read-only mode (write operations will fail with error) |
|
| platform specific application data folder | a data folder used as cache by the virtualenv |
|
False |
start with empty app data folder |
|
False |
trigger a manual update of the embedded wheels |
|
verbosity ⇒ verbosity = verbose - quiet, default INFO, mapping => CRITICAL=0, ERROR=1, WARNING=2, INFO=3, DEBUG=4, NOTSET=5 |
||
2 |
increase verbosity |
|
0 |
decrease verbosity |
|
discovery¶
core ⇒ options shared across all discovery |
||
'builtin' |
interpreter discovery method; choice of: |
|
| the python executable virtualenv is installed into | interpreter based on what to create environment (path/identifier/version-specifier) - by default use the interpreter where the tool is installed - first found wins. Version specifiers (e.g., >=3.12, ~=3.11.0, ==3.10) are also supported |
|
[] |
try first these interpreters before starting the discovery |
|
creator¶
core ⇒ options shared across all creator |
||
|
create environment via; choice of: |
|
directory to create virtualenv at |
||
False |
remove the destination directory if exist before starting (will overwrite files otherwise) |
|
False |
don’t create VCS ignore directive in the destination directory |
|
False |
give the virtual environment access to the system site-packages dir |
|
True |
try to use symlinks rather than copies, when symlinks are not the default for the platform |
|
False |
try to use copies rather than symlinks, even when symlinks are the default for the platform |
|
seeder¶
core ⇒ options shared across all seeder |
||
'app-data' |
seed packages install method; choice of: |
|
False |
do not install seed packages |
|
True |
pass to disable download of the latest pip/setuptools/wheel from PyPI |
|
False |
pass to enable download of the latest pip/setuptools/wheel from PyPI |
|
[] |
a path containing wheels to extend the internal wheel list (can be set 1+ times) |
|
'bundle' |
version of pip to install as seed: embed, bundle, none or exact version |
|
'bundle' |
version of setuptools to install as seed: embed, bundle, none or exact version |
|
False |
do not install pip |
|
False |
do not install setuptools |
|
False |
disable the periodic (once every 14 days) update of the embedded wheels |
|
app-data ⇒ options specific to seeder app-data |
||
False |
symlink the python packages from the app-data folder (requires seed pip>=19.3) |
|
activators¶
core ⇒ options shared across all activators |
||
| comma separated list of activators supported | activators to generate - default is all supported; choice of: |
|
provides an alternative prompt prefix for this environment (value of . means name of the current working directory) |
||