def prompt_install(package): # pragma: no cover
    """
    Function used to prompt user to install a package. If TOWHEE_WORKER env variable is set
    to True then the package will be automatically installed.
    """
    try:
        subprocess.check_call([sys.executable, '-m', 'pip', 'install', package])
        print(f'{package} installed successfully!')
    except subprocess.CalledProcessError:
        print(f'Ran into error installing {package}.')
Function used to prompt user to install a package. If TOWHEE_WORKER env variable is set
to True then the package will be automatically installed.
towhee/utils/dependency_control.py