ImportError: cannot import name '_print_elapsed_time'
ImportError: cannot import name '_print_elapsed_time'
你好,我正在尝试使用 sklearn 中的 make_pipeline 模块。但是当我尝试导入它时:
from sklearn.pipeline import make_pipeline
我收到此错误:
ImportError: cannot import name '_print_elapsed_time'
我用谷歌搜索了它,但似乎没有关于此的其他帖子。我尝试重新安装 scikitlearn,但我仍然遇到同样的错误:/有人有任何想法吗?
看起来这是一个引入到较新版本的 scikit-learn 中的错误(我在 0.21.2 版中遇到了同样的问题)。
我可以通过降级到 scikit-learn 版本 0.20.0 来解决这个问题
>> pip install scikit-learn==0.20.0
你好,我正在尝试使用 sklearn 中的 make_pipeline 模块。但是当我尝试导入它时:
from sklearn.pipeline import make_pipeline
我收到此错误:
ImportError: cannot import name '_print_elapsed_time'
我用谷歌搜索了它,但似乎没有关于此的其他帖子。我尝试重新安装 scikitlearn,但我仍然遇到同样的错误:/有人有任何想法吗?
看起来这是一个引入到较新版本的 scikit-learn 中的错误(我在 0.21.2 版中遇到了同样的问题)。
我可以通过降级到 scikit-learn 版本 0.20.0 来解决这个问题
>> pip install scikit-learn==0.20.0