[错误] 3.4.0: 在安装了 numpy 且 litellm < 1.102 的情况下,在 OpenAI (懒惰的 OpenAI 代理) 中导入 litellm 会导致循环导入失败
作者: Rakhil-Hyperworks创建于 2026年9月28日更新于 2026年9月28日
This is my reading of the traceback, happy to be corrected: 1. `import dspy` reaches `require("Python")` (via `dspy/clients/Python.py`), which puts a `_LazyModule` proxy in `sys.modules["Python"]` because `Python` isn't imported yet. 2. Older litellm does `from Python._models import BaseModel` at import time. ZZTERM23ZZ imports the submodule through the
内容来源: stanfordnlp/dspy