本文介绍了无法从“sklearn.utils.fixes"导入名称“延迟"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
cannot import name 'delayed' from 'sklearn.utils.fixes
应该如何解决?我已经更新了 sklearn 并升级了 conda.
How should the cannot import name 'delayed' from 'sklearn.utils.fixes
be solved? I have already updated sklearn and upgraded conda as well.
~\.conda\envs\base2\lib\site-packages\sklearn\metrics\pairwise.py in <module>
30 from ..utils._mask import _get_mask
31 from ..utils.validation import _deprecate_positional_args
---> 32 from ..utils.fixes import delayed
33 from ..utils.fixes import sp_version, parse_version
34
ImportError: cannot import name 'delayed' from 'sklearn.utils.fixes'`
推荐答案
通过pip install delay
安装后重启内核,问题解决.
After the installation via pip install delayed
and then restarting the kernel, the problem was solved.
这篇关于无法从“sklearn.utils.fixes"导入名称“延迟"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!