withPip

Method
📦 Aspire.Hosting.Python v17.0.0
interface PythonAppResource {
// ... omitted for brevity
withPip(
install?: boolean,
installArgs?: string[]): PythonAppResource;
}

Signature

methodwithPipbuilder
Configures the Python resource to use pip as the package manager and optionally installs packages before the application starts.
withPip(
install?: boolean,
installArgs?: string[]): PythonAppResource
installbooleanoptional= TrueWhen true (default), automatically installs packages before the application starts. When false, only sets the package manager annotation without creating an installer resource.
installArgsstring[]optionalThe command-line arguments passed to pip install command.
PythonAppResource

Applies to

This method applies to the following types: