auto_analysis工具,报错 Code execution failed at line 'from sklearn.linear_model import LogisticRegression' due to: AttributeError: 'IsolatedEnviron' object has no attribute 'setdefault'
Author: KenwwwwCreated Feb 4, 2026Updated Feb 4, 2026
我单独测试smolagents是可以成功运行的,所以我想是不是异步环境或者上下文的相关问题,在jdgenie tool中的codeagent执行这个代码就会报错: Code execution failed at line 'from sklearn.linear_model import LogisticRegression' due to: AttributeError: 'IsolatedEnviron' object has no attribute 'setdefault' 不能导入sklearn
Source: jd-opensource/joyagent-jdgenie