ImportError: cannot import name ‘_validate_lengths‘解决方法

只需升级一下scikit-image库即可!

pip install --upgrade scikit-image

然而,并不是这么顺利!

·报下面这个错误:

ERROR: Cannot uninstall ‘imageio’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

·解决方法

pip install --ignore-installed imageio

然后再重新运行即可

pip install --upgrade scikit-image
上一篇:机器学习笔记:Hierarchical_clustering with scikit-learn(层次聚类)


下一篇:Python数模笔记-Sklearn (1)介绍