Skip to content
Docs Try Aspire
Docs Try

withVirtualEnvironment

Method
📦 Aspire.Hosting.Python v13.4.0
interface PythonAppResource {
// ... omitted for brevity
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource;
}

Signature

method withVirtualEnvironment builder
Configures a custom virtual environment path for the Python application.
withVirtualEnvironment(
virtualEnvironmentPath: string,
createIfNotExists?: boolean): PythonAppResource
virtualEnvironmentPath string
createIfNotExists boolean optional = True
PythonAppResource

Applies to

This method applies to the following types: