virtualenv
| Use Case | Command | Description |
|---|---|---|
| Create virtual environment | cli_run(args) | Create a virtual environment from CLI arguments |
| Inspect session without creating | session_via_cli(args) | Preview what the virtual environment would look like |
| Get version | virtualenv.__version__ | Returns the version string |
__main__activation (package)app_data (package)config (package)create (package)discovery (package)inforeportrun (package)seed (package)util (package)versioncli_run(args, options=None, setup_logging=True, env=None) — Create a virtual environment given some command line interface arguments.
args: the command line argumentsoptions: passing in a VirtualEnvOptions object allows return of the parsed optionssetup_logging: True if setup logging handlers, False to use handlers already registeredenv: environment variables to usesession_via_cli(args, options=None, setup_logging=True, env=None) — Create a virtualenv session (same as cli_run, but this does not perform the creation). Use this if you just want to query what the virtual environment would look like, but not actually create it.
args: the command line argumentsoptions: passing in a VirtualEnvOptions object allows return of the parsed optionssetup_logging: True if setup logging handlers, False to use handlers already registeredenv: environment variables to use__all__ = ('__version__', 'cli_run', 'session_via_cli')
20.13.0+ds
/usr/lib/python3/dist-packages/virtualenv/__init__.py
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 16:13 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format