Create a virtual environment.
py -m venv .venvCreate a virtual environment.
py -m venv .venvCreate a virtual environment.
py -m venv .venv| Option / clause | Description |
|---|---|
--system-site-packages | Give the environment access to system site-packages. |
--clear | Delete the target environment contents before creation. |
--upgrade | Upgrade an existing environment to use this Python installation. |
--without-pip | Do not install pip in the new environment. |
--prompt <name> | Set the prompt prefix shown for the environment. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.