diff --git a/llama-index-core/llama_index/core/download/integration.py b/llama-index-core/llama_index/core/download/integration.py index d9023762f65eb06c41f2b6851a15208a73645cca..df7180bb67894b2625e8ee969c507715b3384330 100644 --- a/llama-index-core/llama_index/core/download/integration.py +++ b/llama-index-core/llama_index/core/download/integration.py @@ -18,7 +18,6 @@ def download_integration(module_str: str, module_import_str: str, cls_name: str) raise Exception(f"Failed to pip install `{module_str}`") from e try: - exec(f"from {module_import_str} import {cls_name}") module_spec = importlib.util.find_spec(module_import_str) module = importlib.util.module_from_spec(module_spec) module_spec.loader.exec_module(module)