paidiverpy.utils.install_packages#

This module contains functions to check and install dependencies.

Functions#

check_and_install_dependencies(→ None)

Check and install dependencies.

is_package_installed(→ bool)

Check if the package is installed.

Module Contents#

paidiverpy.utils.install_packages.check_and_install_dependencies(dependencies: str | None, dependencies_path: str | pathlib.Path | None) None[source]#

Check and install dependencies.

Parameters:
  • dependencies (str, None) – The dependencies to check and install.

  • dependencies_path (str, Path, None) – The path to a file containing dependencies.

Raises:

PackageNotFoundError – If the package is not found.

paidiverpy.utils.install_packages.is_package_installed(package_name: str) bool[source]#

Check if the package is installed.

Parameters:

package_name (str) – The package name.

Returns:

Whether the package is installed.

Return type:

bool