def create(env_dir, system_site_packages=False, clear=False,<EOL>symlinks=False, with_pip=False, prompt=None):
builder = ExtendedEnvBuilder(system_site_packages=system_site_packages,<EOL>clear=clear, symlinks=symlinks, with_pip=with_pip,<EOL>prompt=prompt)<EOL>builder.create(env_dir)<EOL>return builder.context<EOL>
Create a virtual environment in a directory.