简体   繁体   中英

How import module in python

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.18.1) I'm trying pip install scikit-image==0.13.1 but it failed enter image description here

Try:

from skimage.util import montage

Or, with older versions:

pip install scikit-image==0.13.1

from skimage.util.montage import montage2d

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM