添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
安静的松树  ·  ImportError: DLL load ...·  昨天    · 
魁梧的排球  ·  Issue ...·  昨天    · 
机灵的手电筒  ·  Re:openvino.runtime - ...·  昨天    · 
粗眉毛的青蛙  ·  spark ...·  22 小时前    · 
健壮的烤地瓜  ·  pip install -r ...·  4 小时前    · 
walrus  ·  聚合搜·  2 周前    · 
I have troubles trying to import the DecisionTreeClassifier python class in a Python Learner node. Using the Anaconda Python prompt, it works.
Cheers
Alfredo

Knime version is 3.7.1
Python version is 3.6.8

When executing this line:
from sklearn.tree import DecisionTreeClassifier

I get this error message:

Traceback (most recent call last):
File "C:\Program Files\KNIME\plugins\org.knime.python2_3.7.1.v201901281201\py\PythonKernelBase.py", line 278, in execute
exec(source_code, self._exec_env, self._exec_env)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'sklearn’