ModuleNotFoundError:没有名为“skimage.util.montage"的模块 [英] ModuleNotFoundError: No module named 'skimage.util.montage'
问题描述
我正在尝试从 scikit-image 导入 montage2d
模块:
I'm trying to import montage2d
module from scikit-image:
从 skimage.util.montage 导入 montage2d
但是出现了这个错误:
ModuleNotFoundError:没有名为skimage.util.montage"的模块
我很确定我将 scikit-image 包安装为:
I'm pretty sure I installed the scikit-image package as:
pip install scikit-image
(0.14.0)
我也尝试过 Anaconda:
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.
命名空间已被移除,montage2d
函数已被弃用并移至 skimage.util.montage2d
.
In scikit-image=0.14.0
skimage.util.montage.
namespace has been removed, montage2d
function has been deprecated and moved to skimage.util.montage2d
.
有关更多信息,请参阅 0.14.0
版本的发行说明 - https://github.com/scikit-image/scikit-image/blob/master/doc/release/release_0.14.rst.
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.
这篇关于ModuleNotFoundError:没有名为“skimage.util.montage"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!