lagent.utils.package 源代码

from importlib.util import find_spec


[文档]def is_module_exist(module_name): spec = find_spec(module_name) if spec is None: return False else: return True