withPip
Method
interface PythonAppResource { // ... omitted for brevity withPip( install?: boolean, installArgs?: string[]): PythonAppResource;}Signature
method
withPip builderConfigures the Python resource to use pip as the package manager and optionally installs packages before the application starts.
withPip( install?: boolean, installArgs?: string[]): PythonAppResourceParameters
installbooleanoptional= TrueWhen true (default), automatically installs packages before the application starts. When false, only sets the package manager annotation without creating an installer resource.installArgs string[]optionalThe command-line arguments passed to pip install command.Returns
PythonAppResource Applies to
This method applies to the following types: