upxo.interfaces.os.pck_mgmt module

upxo.interfaces.os.pck_mgmt.check_and_install_packages(required_packages, confirmation_message)[source]

Checks if the given packages with specific versions are installed. If not, asks for user confirmation to install them.

Parameters:
  • required_packages (list) – A list of tuples with package names and versions.

  • confirmation_message (str) – A message to ask for user confirmation.

upxo.interfaces.os.pck_mgmt.install_package(package_spec)[source]

Installs the given package using pip, including the version.

Parameters:

package_spec (str) – The name and version specifier of the package to install.