Skip to content
DocsTry Aspire
DocsTry

PythonAppResource.withPip

Method
📦 Aspire.Hosting.Python v13.4.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= True
installArgsstring[]optional
PythonAppResource

Defined on

This method is defined on the following type: