VIRTUALENV(1)
๐ VIRTUALENV(1) ๐
okay bestie, welcome to the General Commands Manual โ section 1, the big leagues. this is the virtualenv page, and i'm gonna walk you through it like we're texting at 2am. grab a snack. ๐
โจ NAME โจ
virtualenv โ the Python virtual environment creator. that's it, that's the whole vibe. she makes worlds. ๐
โจ SYNOPSIS โจ
virtualenv [options...] dest
โจ DESCRIPTION โจ
so basically the virtualenv utility creates virtual Python instances, and every single one of them gets invoked with its own personal Python executable. main character energy, truly. ๐
each instance can have a totally different set of modules, and you install those via easy_install. and the best part? virtual Python instances can also be created without root access. no sudo, no begging, no nothing. we love a permission-free queen. ๐
๐ธ optional arguments: ๐ธ
--versionโ display the version of thevirtualenvpackage and it's location, then exit--with-tracebackโ on failure also display the stacktrace internals ofvirtualenv(default:False)--read-only-app-dataโ use app data folder in read-only mode (write operations will fail with error) (default:False)--app-data APP_DATAโ a data folder used as cache by thevirtualenv(default:~/.local/share/virtualenv)--reset-app-dataโ start with empty app data folder (default:False)--upgrade-embed-wheelsโ trigger a manual update of the embedded wheels (default:False)-h,--helpโ show help and exit
๐ธ verbosity: ๐ธ
okay so the whole vibe here is: verbosity = verbose - quiet, default INFO, and the mapping goes like this => CRITICAL=0, ERROR=1, WARNING=2, INFO=3, DEBUG=4, NOTSET=5. math but make it gossip. ๐งฎ
-v,--verboseโ increase verbosity (default:2)-q,--quietโ decrease verbosity (default:0)
๐ฆ discovery: ๐ฆ
this section is literally about discovering and providing a target interpreter. it's giving treasure hunt. ๐
--discovery {builtin}โ interpreter discovery method (default:builtin)-p py,--python pyโ target interpreter for which to create a virtual (either absolute path or identifier string) (default:/usr/bin/python3)--try-first-with py_exeโ try first these interpreters before starting the discovery (default:[])
๐ creator: ๐
options for creator builtin. yes she named a whole section after herself. iconic.
--creator {builtin,cpython3-posix,venv}โ create environment via (builtin=cpython3-posix) (default:builtin)destโ directory to createvirtualenvat--clearโ remove the destination directory if exist before starting (will overwrite files otherwise) (default:False)--no-vcs-ignoreโ don't create VCS ignore directive in the destination directory (default:False)--system-site-packagesโ give the virtual environment access to the system site-packages dir (default:False)--symlinksโ try to use symlinks rather than copies, when symlinks are not the default for the platform (default:True)--copies,--always-copyโ try to use copies rather than symlinks, even when symlinks are the default for the platform (default:False)
heads up bestie: --clear is the dramatic one โ it removes the destination directory if it exists before starting. and if you don't pass it, files get overwritten anyway. choose your fighter. ๐
๐ seeder: ๐
options for seeder app-data. sprinkling the good stuff. ๐ฑ
--seeder {app-data,pip}โ seed packages install method (default:app-data)--no-seed,--without-pipโ do not install seed packages (default:False)--downloadโ pass to enable download of the latestpip,setuptools, andwheelfrom PyPI (default:False)--no-download,--never-downloadโ pass to disable download of the latestpip,setuptools, andwheelfrom PyPI (default:True)--extra-search-dir d [d ...]โ a path containing wheels the seeder may also use beside bundled (can be set 1+ times) (default:[])--pip versionโpipversion to install,bundlefor bundled (default:latest)--setuptools versionโsetuptoolsversion to install,bundlefor bundled (default:latest)--wheel versionโwheelversion to install,bundlefor bundled (default:latest)--no-pipโ do not installpip(default:False)--no-setuptoolsโ do not installsetuptools(default:False)--no-wheelโ do not installwheel(default:False)--no-periodic-updateโ disable the periodic (once every 14 days) update of the embedded wheels (default:True)--symlink-app-dataโ symlink the python packages from the app-data folder (requires seedpip>=19.3) (default:False)
๐ activators: ๐
options for activation scripts. the moment everyone's been waiting for. โจ
--activators comma_sep_listโ activators to generate - default is all supported (default:bash,cshell,fish,powershell,python,xonsh)--prompt promptโ provides an alternative prompt prefix for this environment (default:None)
config file $HOME/.config/virtualenv/virtualenv.ini (change via env var VIRTUALENV_CONFIG_FILE)
yes bestie, there's a config file. you can swap it out with the env var VIRTUALENV_CONFIG_FILE. customize your life. ๐ซถ
๐ AUTHORS ๐
This man-page was created using help2man and then updated by Scott Kitterman <scott@kitterman.com> and is licensed under the same terms as virtualenv.
and that's the whole page, no cap. this one lives in the General Commands Manual, and the footer just says VIRTUALENV(1) back at you like a little echo. bye bestie, go make some virtual environments ๐ฆโจ
๐ฆ where this page comes from
- debian trixie: python3-virtualenv 20.31.2+ds-1+deb13u1 ยท MIT
- ubuntu questing: python3-virtualenv 20.31.2+ds-1
- ubuntu resolute: python3-virtualenv 20.36.1+ds-1 ยท MIT
- ubuntu stonking: python3-virtualenv 21.5.1+ds-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms