Ask a question to get started
Enter to send•Shift+Enter new line
Dynamically import a module.
Raise an exception if the module is not installed.
guard_import( module_name: str, *, pip_name: str | None = None, package: str | None = None ) -> Any
module_name
str
The name of the module to import.
pip_name
str | None
None
The name of the module to install with pip.
package
The package to import the module from.