我能够通过降级到scikit-learn 0.20.0版本来解决此问题>> pip install scikit-learn==0.20.0Hi so I'm trying to use the make_pipeline module in sklearn. But when I try to import it with:from sklearn.pipeline import make_pipelineI get this error: ImportError: cannot import name '_print_elapsed_time'I've googled it but there seems to be no other posts about this. I tried reinstalling scikitlearn but I still get the same error :/ Anyone have any ideas? 解决方案 It looks like this was a bug introduced into one of the newer versions of scikit-learn (I got this same issue in version 0.21.2).I was able to fix this by downgrading to scikit-learn version 0.20.0>> pip install scikit-learn==0.20.0 这篇关于ImportError:无法导入名称"_print_elapsed_time"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 19:15