Search code examples
pythonscikit-image

ModuleNotFoundError: No module named 'skimage.util.montage'


I'm trying to import montage2d module from scikit-image:

from skimage.util.montage import montage2d

But this error popped up:

ModuleNotFoundError: No module named 'skimage.util.montage'

I'm pretty sure I installed the scikit-image package as:

pip install scikit-image (0.14.0)

I also tried Anaconda:

conda install -c conda-forge scikit-image (0.14.0)

Build from source doesn't work either.


Solution

  • In scikit-image=0.14.0 skimage.util.montage. namespace has been removed, montage2d function has been deprecated and moved to skimage.util.montage2d.

    For more info, see the release notes for the version 0.14.0 - https://github.com/scikit-image/scikit-image/blob/master/doc/release/release_0.14.rst.