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.
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.
To get rid of editing from a lot of lines, I used to import in this manner,
from skimage.util import montage as montage2d
Also, you can change the version as described above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With